brepjs API Reference
    Preparing search index...

    Function cutAll

    • Cut all tool shapes from a base shape in a single boolean operation.

      Combines all tools into a compound before cutting to avoid accumulated floating-point drift from sequential pair-wise cuts.

      Parameters

      • base: Shape3D

        The shape to cut from.

      • tools: Shape3D[]

        Array of tool shapes to subtract.

      • options: BooleanOptions = {}

        Boolean operation options.

      Returns Result<Shape3D>

      Ok with the cut shape, or the base shape unchanged if tools is empty.