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_intersect [2020/12/05 01:25]
JSCAD Editor
en:design_guide_intersect [2020/12/08 06:53] (current)
JSCAD Editor
Line 1: Line 1:
 ==== Intersect ==== ==== Intersect ====
  
-{{ :wiki:jscad-intersect.png?nolink | Union}}+{{ :wiki:jscad-intersect.png?nolink | Intersect}}
  
 Several objects can be combined (overlapped) into a single shape. This result is the logical intersection of the shapes. Several objects can be combined (overlapped) into a single shape. This result is the logical intersection of the shapes.
  
 <code javascript> <code javascript>
-let shape intersection(sphere({r: 1, center: true}), cube({size: 1.5, center: true})+const newshape intersect(cube({size: 10}), cylinder({radius4heigth14})
-</code> +
- +
-The CSG library functions can also be used. //NOTE: Deprecated in the V2 API// +
- +
-<code javascript> +
-sphere({r: 1center: true}). intersect(cube({size1.5centertrue}))+
 </code> </code>