Prepare input polygons for PolyPartition
masterBefore using any partitioning or triangulation methods, ensure your input polygons meet these requirements:
- No self-intersections: Polygons must not intersect themselves.
- Correct vertex order: Non-hole polygons must be counter-clockwise (CCW), and holes must be clockwise (CW).
- Hole marking: Holes must be explicitly marked using
TPPLPoly::SetHole(true).
You can automatically correct the vertex orientation by calling the TPPLPoly::SetOrientation method.