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