-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
To slice polygons into N pieces, we are using the same method as transformr and flubber, which is to
- triangulate a polygon
- take the smallest triangle (or, after some triangles have been merged, polygon)
- merge it with the first found neighbor
- compute area of the resulting polygon
- repeat step 2 - 4 until the number of polygons/triangles is equal to N
This is pretty slow. I wonder if there is a faster way to do this. PolyK seems to be able to slice polygons without triangulation (see this, doesn't support holes tho). If we could figure out a quick way to find a line that approximately cuts a polygon in half, we could just keep cutting the biggest polygon in half until we have the desired number of pieces N. I suspect that to be faster.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request