Source

py2scad / examples / cylinder_w_hole.py

Diff from to

File examples/cylinder_w_hole.py

 from py2scad import *
 
 cyl = Cylinder(h=5,r1=1,r2=1)
+hole = Cylinder(h=3,r1=0.2,r2=0.2)
 if 1:
-    hole = Cylinder(h=3,r1=0.2,r2=0.2)
+    hole = Rotate(hole, v=[1,0,0],a=90) 
 else:
     # Show hole making cylinder in tranparent pink
     hole = Rotate(hole, v=[1,0,0],a=90,mod='#')