DescriptionThe basic algorithm is to run the GLU tesselator once to retrieve the boundary contours, compute the edge equations, and run the tesselator again, passing the inflated and intersected edges to get the interior polygons. We use the edge flags from the second run to know which vertices are on the polygon edge (since some edge vertices become interior vertices when inflated). These are drawn as separate triangles in order to pass the correct edge equations.
In order to share code as much as possible with the non-AA and convex paths, I wrapped the tesselator into some helper classes for the boundary tesselator, polygon tesselator, and polygon-with-edges tesselator.
Patch Set 1 #Patch Set 2 : Remove some unnecessary changes #
Total comments: 12
Patch Set 3 : Fixes from review comments #
Total comments: 8
Patch Set 4 : Fixes for ProgramUnitTest; Responding to Tom's comments #
MessagesTotal messages: 17
|