fast-mesh-wasm
    Preparing search index...

    Interface MeasureResult

    Scalar measurements of a mesh, from Scene.measure. The report is in world coordinates (the placement applied), so scaled meshes measure scaled. Thickness (#116) and curvature (#117) build on this.

    interface MeasureResult {
        area: number;
        boundaryLoops: number;
        closed: boolean;
        nonManifoldEdges: number;
        orientationConflicts: number;
        volume: number | null;
        volumeReason: "open" | "non-manifold" | null;
    }
    Index
    area: number

    The total triangle area; always defined.

    boundaryLoops: number

    The boundary loops and open chains, as analyze reports them.

    closed: boolean

    No boundary loop or open chain and no non-manifold edge.

    nonManifoldEdges: number

    How many edges have three or more triangles.

    orientationConflicts: number

    Interior edges used in the same direction by both their triangles.

    volume: number | null

    The enclosed volume, or null when the mesh is not watertight (open or non-manifold), with volumeReason saying why. The volume is the absolute signed sum, so inconsistent winding does not fail the call: it only shows up in orientationConflicts, while partly cancelling the number. Require orientationConflicts === 0 for a strict reading.

    volumeReason: "open" | "non-manifold" | null

    Why volume is null; null exactly when closed.