-
I'm working on something that requires neighbor edge and poly indices for each edge. I'm not really sure how to get this data. I was looking at Any advice? |
Beta Was this translation helpful? Give feedback.
Answered by
S41L0R
Feb 10, 2023
Replies: 1 comment
-
Resolved! Here's the solution I used for people looking at this in future:
Anyway, I hope that's helpful to anyone working on something similar in future! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
S41L0R
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved!
Here's the solution I used for people looking at this in future:
dtPoly->neis
& DT_EXT_LINK (0x8000), the link is external.dtMeshTile->links
. Documentation doesn't seem to be too great on that, so here's what I want to say about using that:dtPoly
has an index intodtMeshTile->links
. This represents where the first link is, and you can iterate like this:for (unsigned int i = srcPoly->firstLink; …