meta data for this page
  •  

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
en:design_guide_rotate_extrude [2020/12/05 06:20]
JSCAD Editor
en:design_guide_rotate_extrude [2022/05/02 08:04] (current)
JSCAD Editor
Line 3: Line 3:
 {{ :wiki:jscad-extruderotate.png?nolink | Extrude Rotate}} {{ :wiki:jscad-extruderotate.png?nolink | Extrude Rotate}}
  
-Extrude a two dimensional shape in a rotation about the Z axis. The two dimensional shape can be placed anywhere to create various three dimensional shapes.+Extrude a two dimensional shape in a rotation about the Z axis. The two dimensional shape can be placed anywhere to create various three dimensional shapes. The ''segments'' specify the number of segments to create per full rotation
  
 Defaults: Defaults:
Line 9: Line 9:
   * angle: PI * 2   * angle: PI * 2
   * overflow: 'cap' (cap the ends in order to create a solid)   * overflow: 'cap' (cap the ends in order to create a solid)
-  * segments: 12+  * segments: 12 (Note: Increasing the value of segments improves the overall shape.)
  
 <code javascript> <code javascript>
-let myshape = extrudeRotate({segments: 64}, shape1) +const myshape = extrudeRotate({segments: 64}, shape1) 
-let myshape = extrudeRotate({segments: 8, angle: Math.PI startAngle: 0}, shape3)+const myshape = extrudeRotate({segments: 8, angle: Math.PI startAngle: 0}, shape3)
 </code> </code>