I'm developing a CAD drawing generator using C# and netdxf library (https://github.com/haplokuon/netDxf)
The app first performs boolean operations (specifically - union & subtraction) on polygons and draws the resultant path on .dxf file.
I'm using Angus johnson's Clipper library (Clipper - an open source freeware polygon clipping library | angusj.com) for clipping
Everything works fine for polygons, The problem is when I need to clip circles and polygons, the result is a large list of points (representing the path of the figure to be drawn on dxf)
So the curved portion of the path is composed of tiny segments, which is a big problem for the CAM software that'd be used later.
Below is such an image (the result of clipping circle and polygon). The grey portion is full of tiny line segments
1) How can I convert those tiny line segments to circles/arcs using the list of points?
2) Can I take a completely different approach to avoid this problem?