meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:quick_reference_expansions [2020/12/01 02:27]
JSCAD Editor created
en:quick_reference_expansions [2021/04/08 05:29] (current)
JSCAD Editor
Line 1: Line 1:
 ===== Expansions ===== ===== Expansions =====
  
 +The 'expansions' are accessed through the modeling API using the following:
  
 +<code javascript>
 +const { expand, offset } = require('@jscad/modeling').expansions
 +</code>
 +
 +^  Expansion  ^  Notes  ^
 +| const newshape = expand({delta: 2, corners: 'round', segments: 64}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.expand | API]]  |
 +| const newshape = offset({delta: -4, corners: 'round', segments: 64}, oldshape)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.offset | API]]  |