meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:quick_reference_operations [2020/11/28 01:50] Admin created |
en:quick_reference_operations [2021/06/10 01:37] (current) JSCAD Editor [Boolean Operations] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Shape Operations ===== | ===== Shape Operations ===== | ||
| - | ^ 2D Operations | ||
| - | | 2Dshape = union(2DshapeA, | ||
| - | | 2Dshape = difference(2DshapeA, | ||
| - | | 2Dshape = intersection(2DshapeA, | ||
| - | | ::: | 3Dshape = 3DshapeA.inverse(3DshapeB) **/* inverse solid and empty space */** | | ||
| - | //Note: The previous object oriented | + | ==== Boolean Operations ==== |
| + | |||
| + | The ' | ||
| + | |||
| + | <code javascript> | ||
| + | const { union, intersect, scission, subtract } = require(' | ||
| + | </code> | ||
| + | |||
| + | ^ Operation | ||
| + | | const newshape = intersect(oldshape0, | ||
| + | | const newshape = subtract(oldshape0, | ||
| + | | const newshape = union(oldshape0, | ||
| + | | const newshapes = scission(bigshape) | ||
| + | ==== Hull Operations === | ||
| + | |||
| + | The ' | ||
| + | |||
| + | <code javascript> | ||
| + | const { hull, hullChain } = require(' | ||
| + | </code> | ||
| + | |||
| + | ^ Operation | ||
| + | | const newshape = hull(oldshape0, | ||
| + | | const newshape = hullChain(oldshape0, | ||