brepjs API Reference
    Preparing search index...

    Function fuseAll

    • Fuse all shapes in a single boolean operation.

      With strategy: 'native' (default), uses N-way BRepAlgoAPI_BuilderAlgo. With strategy: 'pairwise', uses recursive divide-and-conquer.

      Parameters

      • shapes: Shape3D[]

        Array of 3D shapes to fuse (at least one required).

      • options: BooleanOptions = {}

        Boolean operation options.

      Returns Result<Shape3D>

      Ok with the fused shape, or Err if the array is empty or the result is not 3D.

      const result = fuseAll([box1, box2, box3], { simplify: true });