Thursday, February 16, 2023

OpenSCAD model of a Syringe

 



module syringe(pos=0){

    %cylinder(r=29.3/2, h=132,$fn=50);

    translate([0,0,132])
    cylinder(r=29.3/2, r2=9.3/2 ,h=6,$fn=50);

    translate([0,0,132+6])
    cylinder(r=9.3/2 ,h=7,$fn=50);

    translate([0,0,132+6+7])
    cylinder(r=4/2 ,h=2,$fn=50);


    //cube([50,33,2.3],true);
    linear_extrude(2)
        offset(+3)
            hull(){
                circle(r=33/2 -3);
                square([50-6,16-6],true);
            }


    translate([0,0,-12-pos])
    cylinder(r=31/2, h=1.7,true);

    translate([0,0,-12-pos])  //120 is fully extended. 
    cylinder(r=17/2, h=140 );

}

syringe(pos=abs(120 - ($t * 240))) ;

No comments: