brepjs API Reference
    Preparing search index...

    Function windingNumbers

    • Generalized winding number at each query point against a triangle-soup mesh.

      queries is flat xyz (length 3·Q); the result has length Q. ~1 inside, ~0 outside for a closed mesh; degrades gracefully on holes (the keystone that makes non-watertight repair possible — ADR-0013 §11).

      Parameters

      Returns Result<Float32Array<ArrayBufferLike>>