brepjs API Reference
    Preparing search index...

    Function sdfSweep

    • Sweep an in-plane profile along a spine polyline using rotation-minimizing frames (no 180° flip at inflections). The profile is sampled in its own (normal, binormal) plane at every station; opts.closed loops the spine and skips the open-end caps. The result is a pseudo-SDF (exact distance only near the swept wall), which contours cleanly. spine needs at least 2 finite points.

      Parameters

      Returns Result<SdfHandle>