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
en:quick_reference_conversion [2021/06/10 01:43]
JSCAD Project
en:quick_reference_conversion [2021/06/10 01:45] (current)
JSCAD Project
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>
  
Line 11: Line 11:
 | const newshape = extrudeRectangular({size: 3, height: 15}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_extrusions.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_extrusions.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]]  |