I need an alghoritm which can slice a polygon into subpolygon, maybe a recursive one. I was initially thinking of using mesh subdivision, the problem is that each slice has properties depending on the distance from an axis, so that having triangles would increment considerabily the amount of entities (useless).
These are the steps:
1) define a cloud of points;
2) determine the convex hull (i use triangle library for this)
3) divide recursively the polygons (slice based on a line)
Here is a sketch example (attached)
Does anybody know a library, possibly c or c++ which can do this?


Sign In
Create Account


Back to top









