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_union [2020/11/28 03:01]
JSCAD Editor created
en:design_guide_union [2020/12/08 06:53] (current)
JSCAD Editor
Line 1: Line 1:
 ==== Union ==== ==== Union ====
  
-Several shapes can be combined (merged) into a single shape. The result is the logical union of the shapes. The combining of smaller obects together allows easier transformations, etc.+{{ :wiki:jscad-union.png?nolink | Union}} 
 + 
 +Several shapes can be combined (merged) into a single shape, creating complex 'parts'. The combining of smaller obects together allows the 'part' to be used in other operations, transformations, etc.
  
 <code javascript> <code javascript>
-let shape = union(sphere({r1, center: true}), cube({size1.5centertrue})+const newshape = union(cube({size10}), cylinder({radius4heigth14})
 </code> </code>
  
-The CSG library functions can also be used. //NOTE: Deprecated in the V2 API// 
- 
-<code javascript> 
-sphere({r: 1, center: true}).union(cube({size: 1.5, center: true})) 
-</code>