subtract()
Subtracts the second shape from the first (boolean difference). Works with both 3D solids and 2D sketch geometries.
Returns: SceneObject
tip
See the guide for detailed usage examples.
Signatures
subtract(object1: SceneObject, object2: SceneObject): SceneObject
Subtracts the second shape from the first (boolean difference). Works with both 3D solids and 2D sketch geometries.
| Parameter | Type | Description |
|---|---|---|
object1 | SceneObject | The base shape |
object2 | SceneObject | The shape to subtract |