Gene

do you want to convert a series of short lines that approximate arcs

into g02/g03, to save space?

Or, described as 'fitting x y  pairs to a circle'?


Dave E was looking for similar ( a good while back) and I didnt find any.


If you have slices that can be processed in scripts with librecad (lua)

or esdxf(python)


I imagine some batch processing, layer by layer, slogging thru your megafile )


For python fitting a list of coords to circle there is

https://scipy-cookbook.readthedocs.io/items/Least_Squares_Circle.html


There a classic solution by Coopes but all the papers and code I've found are pay for.

( I hate those 'services; that charge for such information )


theres this implementation in Javascript


https://jsxgraph.uni-bayreuth.de/wiki/index.php/Least-squares_circle_fitting


but to get the demo to render i had to wander around the site till i found something that did render ,

then returm :-(

once it renders, refresh the page for a new random set of points

and a new fitted circle

tomp


On 7/19/20 5:19 PM, Gene Heskett wrote:
On Saturday 18 July 2020 22:21:20 Gregg Eshelman via Emc-users wrote:

Circa 1990: Have you heard of the new Hubble Cocktail? It's very
expensive, comes in a hand polished glass, and after you finish it,
your vision is all blurry.

ROTFLMAO!  I missed that one at the time, shame on me.

Thanks Gregg.

Cheers, Gene Heskett


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to