Browse Source

Correct documentation

See first paragraph of https://graphics.stanford.edu/courses/cs268-09-winter/notes/handout6.pdf
Bert Myroon 3 years ago
parent
commit
45ce3f348f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      panda/src/mathutil/triangulator.cxx

+ 1 - 3
panda/src/mathutil/triangulator.cxx

@@ -125,9 +125,7 @@ triangulate() {
     permute.push_back(i + 1);
     permute.push_back(i + 1);
   }
   }
 
 
-  // Actually, I'm not sure why we should shuffle the index.  That makes the
-  // result non-deterministic, and isn't one order--for instance, the initial
-  // order--as good as any other?
+  // Shuffling the index ensures n*logn time complexity
   /*
   /*
   Randomizer randomizer;
   Randomizer randomizer;
   for (i = 0; i < num_segments; ++i) {
   for (i = 0; i < num_segments; ++i) {