I started thinking about a macro for cutting an angled plane on the top of a block
say I've got a 1x3 block 6" long and I want to cut back and forth in X with a positive Y-Z stepover at the end of each pass.
The slope of the plane is ΔZ/ΔY
The problem arises when the step-up in Z requires more than 4 decimal places
For instance,
If ΔZ is .75"
and ΔY is 1"
and the stepover is .005,
thats 200 cuts in the X direction
and each Z step needs to be .00375
If this is rounded up or down. then the slope won't be true
one thing I just thought of,
what if I round the Z value up and down alternately each loop of the macro, then if the last step is .00005 off, I won't really care about that, and the slope might be "irregular", but immeasurably so. (at least, I couldn't measure it)
These blocks I cut all the time are for vise jaws that have the irregular profile of an aluminum extrusion cut into them. So far I've been using bobcad-cam for this and cutting them on our Tree mill, which lets you input as many decimal places as you want. But I hate using that program and I'm always lookin for a reason to write my next macro.
So waddya think?
any different ideas out there?