Boolean Operations
fuse()
Returns union of all solids. This operation is also called Union.
Syntax
cadlib.fuse(solids, options);
Parameters
Name | Type | Description |
---|---|---|
solids | Array | Array of Solid objects |
options | Object | options: { gluing, tolerance} gluing: ‘shift’ or ‘full’ tolerance: number |
Returns
cut()
Removes solids from first solid. This operation is also called Intersection.
Syntax
cadlib.cut(solids, options);
Parameters
Name | Type | Description |
---|---|---|
solids | Array | Array of Solid objects |
options | Object | options: { tolerance} tolerance: number |
Returns
common()
Returns intersection of all solids. This operation is also called Difference.
Syntax
cadlib.common(solids, options);
Parameters
Name | Type | Description |
---|---|---|
solids | Array | Array of Solid objects |
options | Object | options: { tolerance} tolerance: number |
Returns