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:quick_reference_operations [2021/06/10 01:34]
JSCAD Editor [Boolean Operations]
en:quick_reference_operations [2021/06/10 01:37] (current)
JSCAD Editor [Boolean Operations]
Line 6: Line 6:
  
 <code javascript> <code javascript>
-const { union, intersect, subtract } = require('@jscad/modeling').booleans+const { union, intersect, scission, subtract } = require('@jscad/modeling').booleans
 </code> </code>
  
 ^  Operation  ^  Notes  ^ ^  Operation  ^  Notes  ^
-| const newshape = intersect(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.intersect | API]]  | +| const newshape = intersect(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_booleans.html#.intersect | API]]  | 
-| const newshape = subtract(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.subtract | API]]  | +| const newshape = subtract(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_booleans.html#.subtract | API]]  | 
-| const newshape = union(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.union | API]]  |+| const newshape = union(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_booleans.html#.union | API]]  |
 | const newshapes = scission(bigshape)  | [[https://www.openjscad.xyz/docs/module-modeling_booleans.html#.scission | API]]  | | const newshapes = scission(bigshape)  | [[https://www.openjscad.xyz/docs/module-modeling_booleans.html#.scission | API]]  |
 ==== Hull Operations === ==== Hull Operations ===
Line 19: Line 19:
  
 <code javascript> <code javascript>
-const { hull, chainHull } = require('@jscad/modeling').hulls+const { hull, hullChain } = require('@jscad/modeling').hulls
 </code> </code>
  
 ^  Operation  ^  Notes  ^ ^  Operation  ^  Notes  ^
-| const newshape = chainHull(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.chainHull | API]]  | +| const newshape = hull(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_hulls.html#.hull | API]]  | 
-| const newshape = hull(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.hull | API]]  |+| const newshape = hullChain(oldshape0, oldshape1)  | [[https://www.openjscad.xyz/docs/module-modeling_hulls.html#.hullChain | API]]  |