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_linear_extrude [2020/12/05 05:07] JSCAD Editor |
en:design_guide_linear_extrude [2022/05/02 08:02] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| * height : 1 | * height : 1 | ||
| * twist : 0 | * twist : 0 | ||
| - | * twistSteps : 1 | + | * twistSteps : 1 (Note: Increasing the value of twistSteps improves the overall shape.) |
| <code javascript> | <code javascript> | ||
| - | let myshape = extrudeLinear({height: radiusZ * 2}, shape1) | + | const { extrudeLinear } = require(' |
| - | let myshape | + | |
| - | </ | + | |
| - | Linear extrusion of 2D shape, with optional twist. The 2d shape is placed in in z=0 plane and extruded into direction offset | + | const myshape |
| + | const myshape = extrudeLinear({height: radiusZ * 2, twistAngle: Math.PI / 2, twistSteps: 10}, shape2) | ||
| + | </code> | ||