Polyline to spline
Posted: Sat May 25, 2019 5:01 pm
Is there a tool or script for converting a polyline to a fit-points-spline or a control-points-spline? have searched the docs, the ebook and the forums, and I haven't been able to find anything so maybe this should just be a suggested feature.
I do a lot of CNC routing, but I start with geometry from SketchUp which is of course polygonal. Most of the routing is straight lines so the polygonal nature of the 2D exported geometry is fine, but circles and curved edges pose a problem because most CAM software sucks at turning tesselated geometry into smooth machine movements. Circles are simple to reconstruct because a two-point circle is easily constructed from a polygon, but curved edges require a lot of clicking with the fit points spline tool to reconstruct. Because you already have the ability to construct a polyline from selected segments, it seems it would be easy to add two commands to then convert an existing polyline into either a fit-points-spline or a control-points-spline. I understand that this has cases where the behavior can be complicated since polylines may not be composed entirely of straight segments, but it seems that the internal functionality to convert a polyline's points into a set of usable spline points already exists, and it would save a lot of time compared to constructing a spline by clicking each point manually.
Thanks,
Brock Brandenberg
I do a lot of CNC routing, but I start with geometry from SketchUp which is of course polygonal. Most of the routing is straight lines so the polygonal nature of the 2D exported geometry is fine, but circles and curved edges pose a problem because most CAM software sucks at turning tesselated geometry into smooth machine movements. Circles are simple to reconstruct because a two-point circle is easily constructed from a polygon, but curved edges require a lot of clicking with the fit points spline tool to reconstruct. Because you already have the ability to construct a polyline from selected segments, it seems it would be easy to add two commands to then convert an existing polyline into either a fit-points-spline or a control-points-spline. I understand that this has cases where the behavior can be complicated since polylines may not be composed entirely of straight segments, but it seems that the internal functionality to convert a polyline's points into a set of usable spline points already exists, and it would save a lot of time compared to constructing a spline by clicking each point manually.
Thanks,
Brock Brandenberg