discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Tangential join/infill two parallel vertical cylindrical tubes.

RW
Ray West
Tue, Apr 20, 2021 2:03 AM

Is this good enough? You can play with the sizes, and extrude the parts
separately if you want, make a prettier infill..

hole1 =10; //diameter of small hole
hole2 = 15;// diameter of large hole
wall=3;// thickness of wall
height =50; //height of piece

    // position holes
module holes(){
    circle (d=hole1);
    translate ([(hole1+hole2)/2,0])circle (d=hole2);
}

   // get solids
module skin(){
    circle (d=hole1 + wall+wall);
    translate([(hole1+hole2)/2,0])circle (d=hole2+wall+wall);
    //add in filler
       filler();
       mirror([0,1,0])filler();
}

   // make wedged shaped filler
module filler(){
polygon(points=[[0,0],[(hole1+hole2)/2,0],[(hole1+hole2)/2,hole2/2+wall],[0,hole1/2+wall]]);
}

$fn =80;

linear_extrude(height)
      difference (){
         skin();
         holes();
}

On 19/04/2021 23:49, Chris Johnson via Discuss wrote:


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Is this good enough? You can play with the sizes, and extrude the parts separately if you want, make a prettier infill.. hole1 =10; //diameter of small hole hole2 = 15;// diameter of large hole wall=3;// thickness of wall height =50; //height of piece     // position holes module holes(){     circle (d=hole1);     translate ([(hole1+hole2)/2,0])circle (d=hole2); }    // get solids module skin(){     circle (d=hole1 + wall+wall);     translate([(hole1+hole2)/2,0])circle (d=hole2+wall+wall);     //add in filler        filler();        mirror([0,1,0])filler(); }    // make wedged shaped filler module filler(){ polygon(points=[[0,0],[(hole1+hole2)/2,0],[(hole1+hole2)/2,hole2/2+wall],[0,hole1/2+wall]]); } $fn =80; linear_extrude(height)       difference (){          skin();          holes(); } On 19/04/2021 23:49, Chris Johnson via Discuss wrote: > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org