google-code-export / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
2 stars 0 forks source link

Getting indices of added points (C++) #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
cdt->GetTriangles() returns the 3 locations (x,y) of each triangle, but what I 
would like instead is to get the 3 _indices_ in my original polyline (the one 
added to CDT) that make up each triangle. Is that at all possible?
I could of course compare each point and find the one closest to my original 
polyline, but that sounds like a very bad idea..

Thanks in advance!
Martijn

Original issue reported on code.google.com by mvanh...@gmail.com on 5 Jul 2012 at 4:41

GoogleCodeExporter commented 9 years ago
Never mind this question, I simply modified the Point struct to store the 
indices.

Original comment by mvanh...@gmail.com on 5 Jul 2012 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by mason.gr...@gmail.com on 9 Jul 2012 at 10:38