Converts an arbitrary Shape2d into a TriMesh2d.
Default constructor.
Constructs using a Path2d . approximationScale represents how smooth the tesselation is, with 1.0 corresponding to 1:1 with screen space.
Constructs using a Shape2d . approximationScale represents how smooth the tesselation is, with 1.0 corresponding to 1:1 with screen space.
Constructs using a PolyLine2f.
Adds a Shape2d to the tesselation. approximationScale represents how smooth the tesselation is, with 1.0 corresponding to 1:1 with screen space.
Adds a Path2d to the tesselation. approximationScale represents how smooth the tesselation is, with 1.0 corresponding to 1:1 with screen space.
Adds a PolyLine2f to the tesselation.
Adds a PolyLine defined as a series of vec2's.
Performs the tesselation, returning a TriMesh2d.