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:design_guide_expand [2020/12/06 06:10]
JSCAD Editor
en:design_guide_expand [2020/12/08 06:55] (current)
JSCAD Editor
Line 7: Line 7:
 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. 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.+The opposite is also possible by specifying a negative (-) ''delta'', a shape can be contracted.
  
 Defaults: Defaults:
Line 15: Line 15:
  
 <code javascript> <code javascript>
-let myshape = expand({corners: 'round'}, shape1) +const myshape = expand({corners: 'round'}, shape1) 
-let myshape = expand({delta: -2}, shape2) +const myshape = expand({delta: -2}, shape2) 
-let myshape = expand({delta: 2}, shape3)+const myshape = expand({delta: 2}, shape3)
 </code> </code>
  
 //Note: Expanding three dimensional shapes is very CPU intensive. This is a known issue.// //Note: Expanding three dimensional shapes is very CPU intensive. This is a known issue.//