E4FB Generating rcContourSet from polygons with holes · recastnavigation recastnavigation · Discussion #767 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Resolving polygon holes of 2.5D data, like a navmesh on a surface, is super tricky to do as the polygons can fold over each other. For that reason, recast partitions the polygons when things are still represented as voxels. A region is partition of the voxelized walkable space that does not have holes. After that the regions are turned into contours, then polygons, etc.

If your data is strictly 2D, you can connect a corner of the hole polygon to the outer polygon, so that there's just one continuous contour (but overlapping edge which connects the polygons).

Alternatively you can paint the shapes on the voxels, in which case you will loose some accuracy, bit it will be easier to handle.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by EvanBalster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0