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:design_guide_expand [2020/12/06 04:49]
JSCAD Editor created
en:design_guide_expand [2020/12/08 06:55] (current)
JSCAD Editor
Line 1: Line 1:
 ==== Expand ==== ==== Expand ====
  
-Expanding +{{ :wiki:jscad-expand.png?nolink | Expand}} 
 + 
 +//Note: The original shape is black.// 
 + 
 +Expanding two or three dimensional shapes can be performed, which maintains a specific ''delta'' distance from the shape. The ''corners'' can be filled with 'edge', 'round", or 'chamfer' edges. 
 + 
 +The opposite is also possible by specifying a negative (-) ''delta'', a shape can be contracted.
  
 Defaults: Defaults:
Line 8: Line 14:
   * segments : 16   * segments : 16
  
 +<code javascript>
 +const myshape = expand({corners: 'round'}, shape1)
 +const myshape = expand({delta: -2}, shape2)
 +const myshape = expand({delta: 2}, shape3)
 +</code>
 +
 +//Note: Expanding three dimensional shapes is very CPU intensive. This is a known issue.//