Borrow syntax from something else indeed seems lika a good idea. Openscad is based on CGAL which have an impressive list of developers. Have tried to used to calculate machinig operation but at least first try was to slow. After a while also realized a spiral as used by adaptive operation i CAM module of FreeCAD shoould be more or less equally good. CGAL use algebraic numbers so may express intersection between lines and circle segment so that intersection point is exactly on both lines or something similar if I understand everything correct.
Nicklas Karlsson sön 2026-03-22 klockan 06:10 -0400 skrev gene heskett: > While this discussion about expanding gcodes is going on, how > about borrowing from OpenSCAD? > > Specifically some of the stuff made possible by the interaction > of the $fn variable with the cylinder() function. > > This allows a nut pocket to be printed that is not a cylinder, > but a series if straight lines made, for instance, to fit a nut > by measuring the max diameter of the nut from point to point and > passing the diameter to a cylinder(). So an $fn=6 makes a hex > pocket, 4=a square pocket etc. This idea could be expanded, for > a comp module based on some of Sam's amazing work for single > point cutters and sync'd to the spindle index. Or in hal config > to any rotary axis. > > It would need a higher resolution spindle encoder similar to what > I made for my go704, a 1000 ppr $22 Omron driven off the rear > motor shaft + a separate index to allow really big p= in its > controlling PID. > > I'm a bit shaky at p=40, dead stable at p=20, but my encoder > divides a single turn into something over 7000 pieces in high gear > & over 14,000 in low gear. I had to bypass the opto's in that BOB > but the 5i25 tracks it great to its top speed of 3k revs which I > get from that 90 volt PMDC motor with 126 volts applied. I can put > that spindle well within a degree in either gear. > > Sam did some pretty impressive work, with his permission of course > IMNSHO it should be in LinuxCNC. > > Cheers, Gene Heskett, CET. _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
