memononen / libtess2

Game and tools oriented refactored version of GLU tesselator.
Other
465 stars 98 forks source link

Why is regUp marked as "dirty" in CheckForXXXX? #18

Closed waruqi closed 8 years ago

waruqi commented 9 years ago

hi!

I am very interested in the tesselation algorithm, but I do not understand the following code from CheckForXXXX:

RegionAbove(regUp)->dirty = regUp->dirty = TRUE;

regUp and regLo have been processed after calling CheckForXXXX and the dictionary edge ordering has been corrected.

So I think we only need mark RegionAbove(regUp) as "dirty".

Why is also regUp marked as "dirty"?

Thanks!