meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:design_guide_subtract [2020/12/05 01:25] JSCAD Editor |
en:design_guide_subtract [2020/12/08 06:54] (current) JSCAD Editor |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code javascript> | <code javascript> | ||
- | let shape = difference(sphere({r: 1, center: true}), | + | const newshape |
- | </ | + | |
- | + | ||
- | The CSG library functions can also be used. //NOTE: Deprecated in the V2 API// | + | |
- | + | ||
- | <code javascript> | + | |
- | sphere({r: 1, center: true}). subtract(cube({size: 1.5, center: true})) | + | |
</ | </ |