Skip to main content

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.

ParameterTypeDescription
object1SceneObjectThe base shape
object2SceneObjectThe shape to subtract