meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:design_guide_rotate_extrude [2020/12/05 06:12] JSCAD Editor |
en:design_guide_rotate_extrude [2022/05/02 08:04] (current) JSCAD Editor |
||
---|---|---|---|
Line 3: | Line 3: | ||
{{ : | {{ : | ||
- | Additional also rotate_extrude() is available. | + | 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 '' |
Defaults: | Defaults: | ||
* startAngle : 0 | * startAngle : 0 | ||
- | * angle: | + | * angle: |
- | * overflow: ' | + | * overflow: ' |
- | * fn: 32 | + | * segments: 12 (Note: Increasing the value of segments improves the overall shape.) |
<code javascript> | <code javascript> | ||
- | rotate_extrude(translate([4, | + | const myshape = extrudeRotate({segments: 64}, shape1) |
- | rotate_extrude({fn: 36, startAngle: 45, angle: | + | const myshape = extrudeRotate({segments: 8, angle: |
- | + | ||
- | rotate_extrude({fn: | + | |
- | + | ||
- | rotate_extrude(polygon({points:[ [0, | + | |
- | rotate_extrude({fn: | + | |
</ | </ | ||
- | You can essentially extrude any 2D polygon (circle, square or polygon). |