I am trying to create slots along a curve that will be used as a cut pattern in aluminum panels using my cnc router with a 3/8 diameter bit. The slots would graphically show the pattern in Rhino, but a curve along the line is also required as a toolpath for the 3/8" bit.
A friend helped me develop a GH script a few years ago, but we could not get the slots to conform to the line at the points the line changes directions.
Is there a better way of doing this? One thought is to offset the source line on either side by 3/16", divide the curve with dashes, and create rectangles with rounded ends by offsetting the dashes 3/16" and capping them. I can not figure out how to do this, but perhaps this is not the best approach.
To take this to another level, can the slots (and toolpaths) be set parallel to multiple planes of an object? Ideally, I would like to adjust the slot sizes and spacing in real time on all 4 planes of the object in an effort to make a well-informed design decision as a whole.
the script you have works by orienting predefined slots all over the curve, but slots are just reoriented “as they are” so they can’t properly follow the curve when it has corners or similar
I would suggest an approach which draws the slots “one by one” along the original curve
something like this might be a starting point:
Is there an easy way to get equal distances between each end of the source curve to the beginning of the first / last slots along the line? In other words, can all slots somehow be centered on the source line so that the distances on either end of the source line are equal?
this should do the trick (didn’t test it extensively though) it just calculates how many slots+spaces can fit along a given curve (n slots plus n-1 spaces), then subtracts that amount from the total length of the curve and splits the result in half to get a start offset value