pboyer / verb

Open-source, cross-platform NURBS
http://www.verbnurbs.com
MIT License
741 stars 106 forks source link

Fixed transition patch triangulation of adaptive tessellation #6

Closed memononen closed 9 years ago

memononen commented 9 years ago

AdaptiveRefinementNode.triangulateLeaf() had modulo mixed up, which caused the triangles to use indices in 0...n range (i.e. one corner of the surface). This change fixes the triangulation of the transition patches.

pboyer commented 9 years ago

Thanks @memononen! I'll take a look tonight when I'm off work.

pboyer commented 9 years ago

LGTM! Thanks @memononen! Obviously this part of the library is still pretty rough. Let me know if you have any suggestions.