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 [2021/04/08 05:28]
JSCAD Editor
en:quick_reference_conversion [2021/06/10 01:45] (current)
JSCAD Editor
Line 4: Line 4:
  
 <code javascript> <code javascript>
-const { extrudeLinear, extrudeRegtangular, extrudeRotate  } = require('@jscad/modeling').extrusions+const { extrudeLinear, extrudeRegtangular, extrudeRotate, project  } = require('@jscad/modeling').extrusions
 </code> </code>
  
 ^  Extrusion of 2D Shapes  ^  Notes  ^ ^  Extrusion of 2D Shapes  ^  Notes  ^
-| const newshape = extrudeLinear({height: 20, twistAngle: Math.PI, twistSteps: 20}, oldshape))  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.extrudeLinear | API]]  | +| 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_transforms.html#.extrudeRectangular | 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_transforms.html#.extrudeRotate | 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]]  |