brepjs API Reference
    Preparing search index...

    Function closedWire

    • Prove that a wire is closed, returning a branded ClosedWire on success. This is the primary smart constructor for ClosedWire.

      Type Parameters

      Parameters

      Returns Result<ClosedWire<D>, string>

      const w = wire([e1, e2, e3]);
      const closed = closedWire(unwrap(w));
      if (isOk(closed)) {
      const f = face(closed.value); // ClosedWire accepted
      }