algorithmic modeling for Rhino
I have been consolidating ideas on making a CAM plugin for GH. This is due to the fact that more and more RH/GH people are working with a CNC router, with a plugin that adds the ability to parametric create 2D or 3D cuts are definitely helpful.
I'm still at the stage of drafting the goal and audience description for the plugin. and the next stage is to programme it. I don't have all necessary skills yet but will try, hopefully someone will join the team.
A plugin that is easy enough for most GH users to use. It aims at creating toolpaths in a parametric way, allowing reuse of definition settings, quick design change, and able to process large batch of information without error.
Functions - Toolpaths
Functions - Outputs
Geometry engine will rely on Rhino SDK (Offsets, Transformations, 3D)
Most logic can be written in VB.net (I'll test write as custom VB component)
Package distributed as a plugin (I don't know how to do that at the moment)
---- On going edits to the post as ideas unfold ----
That sounds great but I will have to wait to see it as that link keeps timing out.
So did you use GH to generate each drill cycle by changing X,Y and Z parameters to suit position and depth from 0 to tool diameter?
Did you write script to export the g-code?
Hi Taylor, I can see that link now I'm back in the UK. Looks great! I will try somethign similar in the next few days hopefully!
Hi Taylor and Martyn,
I'm interested use this as an example if I'm writing the plugin later.
I have already write a "drilling operation" and I think it would be nice as I write the plugin: the generation of the points would be separated to the CAM plugin, but the generated points can be fed directly to a "drilling operation".
Correction: The file I uploaded was an older, in progress, version. I have posted my current plunge roughing script:
The script does not offset the roughing pass from the geometry at all, a feature that a typical user may be interested in as a roughing tool. Next step for me is linking the centers of the tool-compensated points as a polyline for G-Code output. Martyn, if you are still having trouble, PM me and I will send you the file that way.
Side tracking slightly...
I'd be really interested to hear your views on this problem I have concerning drawing surfaces that can be milled using a rotary milling technique - i.e. one axis rotates the part and the cutting tool can move on 2 axes - one axis radial to the part and one axis along the length of the part. This technique would be used to machine cylindrical cams to make cams that you might find in sewing machines for example.
Traditional sweeps and lofts only create a cam surface that could be machined with a zero diameter cutter. I need to work out how to draw a cylindrical cam surface that can be machined with a known cutter diameter.
My thought would be to:
- Set a rotation step and treat it like a stepover.
- Then for each rotation step do the cutter tool projection I have been doing. (Just finished the surfacing script with cutter tool compensation. Can Copy/paste that over).
- Mill a contour for each rotation step on the axis of the part. This will leave scalloping and that may be alright if you take small enough steps.
- For a better finish we would then rotate the whole part 360 while adjusting the tool to the surface with steps down the axis of the part as a finishing process.
Mind you this is not taking into account the roughing of the part. That may be done in 4 rotations?
I have never worked with a 4th axis, nor programmed with one. If you want to send me a description of your machine I can take a look at programming this lathe-ish process. Otherwise, check out my profile for my other surfacing and tapping scripts. They include the cutter tool offset and curve milling processes. Tapping script is "point at bottom of cut" dependent.
Let me know what works!
Compiled GRASS-CAM program. Contains parallel surfacing, point based drilling, offset contour milling. Haven't clustered and included the plunge roughing script yet. Will mill this test piece tomorrow in blue foam and post results.