[OpenSCAD] Parting Line?

Peter Falke stempeldergeschichte at googlemail.com
Mon Sep 7 08:52:03 EDT 2015


Is this what you want to do?

<http://forum.openscad.org/file/n13723/PartingLine.png> 

And you want to do this automatically?

Note: there is not always a solution to your problem.
---- Code ____
r1=30;
r2=20;

x1=90;
z1=30;

rc=10;

rp=2;


module sphere1(r1=r1){
    sphere(r1);
    color("red")
    rotate_extrude()translate([r1,0,0])circle(rp);
}


sphere1();
translate([x1,0,z1])sphere1();

hull(){
    sphere(rc);
    translate([x1,0,z1])sphere(rc);
}

color("red"){
    hull(){
        translate([0,-rc,0])sphere(rp);
        translate([x1,0,z1])translate([0,-rc,0])sphere(rp);
    }
    hull(){
        translate([0,+rc,0])sphere(rp);
        translate([x1,0,z1])translate([0,+rc,0])sphere(rp);
    }
}




--
View this message in context: http://forum.openscad.org/Parting-Line-tp13715p13723.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list