User Tools


This is an old revision of the document!


Rotate Extrude

Additional also rotate_extrude() is available.

Defaults:

  • startAngle : 0
  • angle: 360
  • overflow: 'cap' (cap the ends inorder to create a solid)
  • fn: 32
rotate_extrude( 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( 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] ]}) );

You can essentially extrude any 2D polygon (circle, square or polygon).