nakijun / poly2tri

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

Enhancement: Introduce ID for Points #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to write an application that uses your library and one little 
"feature" is missing for me.

If I triangulate Points, I would like to give them an unique ID before doing 
so. This helps me to sort them for the further processing.

Would it be possible to introduce an ID field in 
org.poly2tri.geometry.primitive.Point? It should be a long.

Thanks in advance!

Original issue reported on code.google.com by furtelw...@gmail.com on 28 Apr 2011 at 2:44

GoogleCodeExporter commented 9 years ago
Well the x and y coordinate should uniquely identify the points so why not sort 
by those? 

If you want to add a ID to a point maybe just extend the class you use for 
points and add the field yourself?

Original comment by thahlen@gmail.com on 28 Apr 2011 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by thahlen@gmail.com on 1 May 2011 at 8:51