Wednesday, October 13, 2021

I want to take my placeholder code, make a triangle and change the shape of the world polygon div to the triangle. Then we can start to push out edges and points to make a more complex polygon, building a triangle mesh as we go along. For that, after the second point (actually the third point, we ignore that first point to get an offset), We are choosing one of three edges by finding the closest line segment midpoint and pushing out a second triangle, at which time we have a quad triangle pair and there are two vertices which belong to both triangles, so we can push those out, pushing a singleton vertex is not optimal, for six possibilities, or seven if stop modifying the polygon at a quad Otherwise we add one or two triangles to go from a quad triangle pair to a three triangle pentagon or a four triangle quad triangle fan. 

No comments:

Post a Comment