Attached is a script for tool radius compensated surface milling. The script:
- projects a grid of tool radii onto the surface
- determines the highest point of each radius and flattens the radius to that height
- interpolates parallel curves from the center points of the tool radii
- Segments those curves at user defined intervals
- writes g-code to move the cutter over those lines as a series of G01 commands.
Known Issue: when only a corner of a circle is left after being projected to the surface (caused by irregular surface dimensions/stock sizes) the tool radius is incorrectly interpreted by the "fit circle" command. Seeking a workaround.
13.09.24 GRASSHOPPER CNC Paralell Surfacing Script
by Taylor H Newman
Sep 24, 2013
Attached is a script for tool radius compensated surface milling. The script:
- projects a grid of tool radii onto the surface
- determines the highest point of each radius and flattens the radius to that height
- interpolates parallel curves from the center points of the tool radii
- Segments those curves at user defined intervals
- writes g-code to move the cutter over those lines as a series of G01 commands.
Known Issue: when only a corner of a circle is left after being projected to the surface (caused by irregular surface dimensions/stock sizes) the tool radius is incorrectly interpreted by the "fit circle" command. Seeking a workaround.
13.09.23GRASSHOPPERCNCSURFACING.gh