To run it in openSCAD:
F5: quick visualizeHere's the Result:// cone construction defsr_upper=0.5;r_lower= 20;// the next var determines how 'smooth' the curves aredefinition=100;// cone placement defscone_height=20;cone_h_step=10;cone_step= 2*r_lower;// this makes a single cone of 'height' tall,// at [0,0,0]module cone(height){cylinder(h=height,r1=r_lower,r2=r_upper,$fn=definition);}// this makes 'nb' cones,// each is taller than the previous,// while shifting them along the x-axis// note:this code will not make STL, because of 'holes'module make_cones(nb){for (i= [0:nb-1]){translate([cone_step*i,0,0])cone(cone_height+(cone_h_step*i));}}// this does the workmake_cones(3);
Cool, eh?
No comments:
Post a Comment