Let me present first some scripting I’ve done over a couple of weekends. The idea is to use a curve to generate a turning-like toolpath for a 4-axis CNC machine. It cuts up machining time almost in half for revolved surfaces, compared to the way traditional, interpolated on mesh toolpath generation most CAM programs do. The bonus: this script translates the surface speed to the angular, moving slower on large radii, and faster on smaller. It looks kinda funky, but performs well, I tested it. Here is my brain-child (do not laugh):
Crv2GCode-v3a.rvb (3.4 KB)
What needs fixing seems simple, but is not for me. The problem is with dividing (sectioning) the curve so it looks equally from orthogonal view. Sorry, missing the therm here, so I’ll use pictures.
What the script does:
What it should do:
I would be very thankful if someone could script even a quick and dirty solution. I thought of something like projecting the curve to CPlane, dividing it with points, extruding the upper curve in a direction, perpendicular to projected on CPlane curve. Projecting the point back onto surface. To visualize it:
Thank you in advance for any input and critique.