brepjs API Reference
    Preparing search index...

    Function wireLoop

    • Assemble edges into a wire and verify it forms a closed loop.

      Combines wire + the closedWire smart constructor in a single step. Returns an error if the edges cannot be assembled or the wire is not closed.

      Parameters

      Returns Result<ClosedWire>

      const cw = unwrap(wireLoop([e1, e2, e3, e4]));
      const f = unwrap(face(cw)); // ClosedWire accepted directly