Commonplace kernel API
    Preparing search index...

    Function validate

    • Experimental

      Check a mesh against the kernel's invariants. expectClosed also requires every edge with a face on one side to have one on the other (a free line is allowed) and the shells to count as closed surfaces. A closed solid is checked as one without asking, and is expected to face outward; sign '-1' says it is a void (no interior face, wound inward).

      Parameters

      • mesh: HalfEdgeMesh
      • options: { expectClosed?: boolean; sign?: "+1" | "-1" } = {}

      Returns { ok: boolean; problems: ValidationProblem[] }

      2026-Q4

      experimental — stable-by target: 2027-Q2