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
Next revision
Previous revision
design_guide_rotate_extrude [2019/01/05 08:15]
z3dev
design_guide_rotate_extrude [2019/01/05 08:27]
z3dev
Line 6: Line 6:
   * startAngle : 0   * startAngle : 0
   * angle: 360   * angle: 360
-  * overflow: '​cap'​+  * overflow: '​cap' ​(cap the ends inorder to create a solid)
   * fn: 32   * fn: 32
  
 <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).