Fix navmesh countour(Jin Qing's Column, Jan., 2023)After changing some parameters of watershed region partition algorithm,my test mesh generated an odd region shape, which caused a wrong contour.Wrong contour:Wrong navmesh:There are 2 regions, the big region with red contour forms a C shape,which is closed at one point.The error is caused by the closing point, which should be a vertex in the simplified contourof the small blue region but not.In simplifyContour(), the closing point is incorrectly regarded as the edge point between 2 regions,and is skipped, but it is accurately a vertex among 3
...
继续阅读
(29)