Constrainautor
Constrainautor copied to clipboard
Feature request: Helper that allows constraining to be inside a polygon (that may have holes)
This is a request for adding support for using arbitrary polygons as the constraint edges and adding a postprocessing pass to remove edges that are not inside the polygon or that are in the holes of the polygon.
Here's a notebook showing how it could work: https://observablehq.com/@fil/polygon-triangulation
Thank you for the clarification, @Fil.
This seems to be outside my intention for this library: it doesn't add or remove edges. I might try to implement this, but as a separate project.
Looks like poly2tri can already do it though.