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:quick_reference_conversion [2020/12/01 02:31]
JSCAD Editor
en:quick_reference_conversion [2021/06/10 01:45] (current)
JSCAD Editor
Line 1: Line 1:
 ===== Extrusions ===== ===== Extrusions =====
  
 +The 'extrusions' are accessed through the modeling API using the following:
  
 +<code javascript>
 +const { extrudeLinear, extrudeRegtangular, extrudeRotate, project  } = require('@jscad/modeling').extrusions
 +</code>
 +
 +^  Extrusion of 2D Shapes  ^  Notes  ^
 +| const newshape = extrudeLinear({height: 20, twistAngle: Math.PI, twistSteps: 20}, oldshape))  | [[https://www.openjscad.xyz/docs/module-modeling_extrusions.html#.extrudeLinear | API]]  |
 +| const newshape = extrudeRectangular({size: 3, height: 15}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_extrusions.html#.extrudeRectangular | API]]  |
 +| const newshape = extrudeRotate({startAngle: Math.PI, angle: Math.PI / 2, overflow: 'cap', segments: 64}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_extrusions.html#.extrudeRotate | API]]  |
 +| const newshape = project({axis: [0, 0, 1], origin: [0, 0, 0]}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_extrusions.html#.project | API]]  |