On 14/06/2014 at 15:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Example:
Grab polygon[0] and get the 4 point ID#s.
Now grab polygon[1] and get the 4 point ID#s.
Since the two polygons share an edge. Two points will show up twice in your results.
The more polygons you have...The more duplicate values you get.
And if you use these values in your code. You get double transformations for those duplicate points.
Right now I'm storing all the points in an array. And using a nested for() loop to delete duplicate ID#s from. It works but it's slower than molasses on a winter's day.
Even using a std::Vector array is very, very slow.
Is there no way to mark the 4 points as you loop through the polygons. So that you can skip over them and not record them into an array in the next iterations of the loop?
-ScottA