问题
Is it possible to triangulate a polygon which touches itself (like in the image above) with poly2tri?
回答1:
My solution: use Clipper to offset the polygon, triangulate it, and re-offset to obtain the final mesh.
Of course, this is a hack which does not always work since offsetting the polygon is a possibly destructive operation (if the are tiny ends on the polygon, they might not offset back to their original positions).
来源:https://stackoverflow.com/questions/34221075/triangulate-a-polygon-whose-contour-touches-itself-with-poly2tri