Constrainautor icon indicating copy to clipboard operation
Constrainautor copied to clipboard

Feature request: Helper that allows constraining to be inside a polygon (that may have holes)

Open mkv123 opened this issue 5 years ago • 2 comments

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.

mkv123 avatar Jul 08 '20 11:07 mkv123

Here's a notebook showing how it could work: https://observablehq.com/@fil/polygon-triangulation

Fil avatar Jul 09 '20 10:07 Fil

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.

kninnug avatar Jul 09 '20 12:07 kninnug