User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
design_guide_rotate_extrude [2019/01/05 08:22]
z3dev
design_guide_rotate_extrude [2019/01/05 08:27] (current)
z3dev
Line 10: Line 10:
  
 <code javascript>​ <code javascript>​
-rotate_extrude( translate([4,​0,​0],​ circle({r: 1, fn: 30, center: true}) ) );+rotate_extrude(translate([4,​0,​0],​ circle({r: 1, fn: 30, center: true}) ) ); 
 +rotate_extrude({fn:​ 36, startAngle: 45, angle: 180}, translate([4,​ 0, 0], circle({r: 1, fn: 30, center: true})));
  
-// using CSG objects'​ built in methods to translate ​ 
 rotate_extrude({fn:​4},​ square({size:​ [1,1], center: true}).translate([4,​0,​0]) ); rotate_extrude({fn:​4},​ square({size:​ [1,1], center: true}).translate([4,​0,​0]) );
  
-rotate_extrude( polygon({points:​[ [0,​0],​[2,​1],​[1,​2],​[1,​3],​[3,​4],​[0,​5] ]}) );+rotate_extrude(polygon({points:​[ [0,​0],​[2,​1],​[1,​2],​[1,​3],​[3,​4],​[0,​5] ]}) );
 rotate_extrude({fn:​4},​ polygon({points:​[ [0,​0],​[2,​1],​[1,​2],​[1,​3],​[3,​4],​[0,​5] ]}) ); rotate_extrude({fn:​4},​ polygon({points:​[ [0,​0],​[2,​1],​[1,​2],​[1,​3],​[3,​4],​[0,​5] ]}) );
 </​code>​ </​code>​
  
 You can essentially extrude any 2D polygon (circle, square or polygon). You can essentially extrude any 2D polygon (circle, square or polygon).