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:07]
JSCAD Editor
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: Expanding three dimensional shapes is very CPU intensiveThis is a known issue.//+//Note: The original shape is black.// 
 + 
 +Expanding two or three dimensional shapes can be performed, which maintains a specific ''delta'' distance from the shapeThe ''corners'' can be filled with 'edge', 'round", or 'chamfer' edges. 
 + 
 +The opposite is also possible by specifying negative (-) ''delta'', a shape can be contracted.
  
 Defaults: Defaults:
Line 11: 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.//