Curved Polys (update)
Clipper does not make it feasible to pass a polygon through and get the related points back, even if you are only doing a boolean operation. All points get scrambled/re-written. So maintaining zones with arcs will require recognizing/converting arcs post-clipper.
Todo:
-
Read/write file formats -
Plot arcs as part of polygons -
[x] Convert clipper results to lines/arcs (see(Does not work)SHAPE_LINE_CHAIN::DetectArcs
) [ ] IntegrateDetectArcs
to Boolean calculations-
Use Clipper Z value to detect arcs post clipper in boolean operations -
Add unit tests using Simplify
to verify that the arcs are not lost and the area not modified -
[ ] Rewrite(Not needed as not using in Zone fills)SHAPE_POLY_SET::Fillet
so it creates true arc segments instead of just piecewise linear segments
Stretch tasks:
-
[ ] Detect intersections between arcs post Clipper and amend the intersection point(Not needed as not using in Zone fills)
Edited by Jon Evans