Notifications
Clear all
[Closed] Getting triangles of a polygon
Jun 23, 2009 1:07 pm
Hey guys!
I need to access the triangles that a polygon is made of, or more accurately the edges that these are made of.
In an editable_poly some edges are not visible, but still used for triangulation and you cannot access them with the normal edge methods as it seems.
I’d like to find all edges that connect to a certain vertex, or all edges that enclose a triangle of a polygon.
Do you know a way to do that?
Thanks!
-Sascha
1 Reply
Jun 23, 2009 1:07 pm
I’m using a hacky solution for now.
Creating a snapshot, connecting all vertices (hoping that it will preserve internal triangulation), then performing my checks on the snapshot.
Vertex IDs are preserved, so it works, but if someone knows a cleaner solution, I’m all ears.