Gentlemen,
This is my first 'successful' attempt to generate a 5 axis cut in OpenSCAD.
If you subtract this from a block or imported stl file you would have
rudimentary gcode cutter verification operation.
I realise this rendering is not perfect as the facits do not look like I
think they should be accurately simulate a 5 axis path. The sides, top and
bottom would be ruled surfaces from edge to edge but this should do pretty
good as most 5 axis tool path is made up of very short point,vector to
point,vector motion.
Here goes - critique or improvement is very much appreciated
// 1 inch cutter with 1/8 corner radius
// a bullnose cutter
// to simulate a 5 axis cut difference a block
// and this path - not perfect but a good start
cornerrad = .125;
tooldia=1;
toollength=2;
smooth = 3; // Number of facets of rounding cylinder
$fn=smooth;
translate([0,0,0]) {
hull() {
translate([0,0,0])
{
rotate([0,0,0])
{
rotate_extrude(convexity=10,$fn=smooth*5)
translate([tooldia/2-cornerrad,cornerrad,0])
circle(cornerrad);
translate([0,0,cornerrad])
cylinder(toollength,tooldia/2,tooldia/2,$fn=smooth*5);
translate([0,0,0])
cylinder(toollength/4,tooldia/2-cornerrad,tooldia/2-cornerrad);
}
}
translate([0,10,0])
{
rotate([0,10,0])
{
rotate_extrude(convexity=10,$fn=smooth*5)
translate([tooldia/2-cornerrad,cornerrad,0])
circle(cornerrad);
translate([0,0,cornerrad])
cylinder(toollength,tooldia/2,tooldia/2,$fn=smooth*5);
translate([0,0,0])
cylinder(toollength/4,tooldia/2-cornerrad,tooldia/2-cornerrad);
}
}
}
}
thanks
Stuart
--
Addressee is the intended audience.
If you are not the addressee then my consent is not given for you to read
this email furthermore it is my wish you would close this without saving or
reading, and cease and desist from saving or opening my private
correspondence.
Thank you for honoring my wish.