brepjs API Reference
    Preparing search index...

    Function repairMesh

    • Repair a (possibly non-watertight) triangle-soup mesh into a closed surface: voxelize an FWN-signed SDF, then Surface-Nets contour it back to triangles.

      The FWN sign classifies inside/outside even on holey input, so a mesh with missing faces still yields a watertight result (ADR-0013 §11). Returns a KernelMeshResult in world coordinates (a single face group, no UVs).

      Parameters

      Returns Result<KernelMeshResult>