brepjs API Reference
    Preparing search index...

    Function loft

    • Loft through a set of wire profiles to create a 3D shape.

      Builds a BRepOffsetAPI_ThruSections surface through the given wires, optionally starting and/or ending at point vertices. Produces a solid by default, or a shell when returnShell is true.

      Parameters

      • wires: Wire[]

        Ordered wire profiles to loft through.

      • config: LoftOptions = {}

        Loft configuration (ruled interpolation, start/end points).

      • returnShell: boolean = false

        When true, return a shell instead of a solid.

      Returns Result<Shape3D>

      Result containing the lofted 3D shape.

      const result = loft([bottomWire, topWire], { ruled: false });
      

      loftFns!loftWires | loftWires for the functional API equivalent.