Commonplace kernel API
    Preparing search index...

    Function loadMesh

    • Experimental

      Load a mesh from a MeshDocument, or from a bare HalfEdgeMesh.toJSON() payload (the host's geometry). Every entity keeps its saved id. Older shapes are migrated on the way in; a document from a newer kernel is refused rather than half read. Never throws on a document; throws EditLaneNotLoaded when called from the ./core entry before loadEditLane() (or loadKernel()) has landed. The load checks the records join up (no two of one kind share an id, and every id a record names is in the document), not that the model is valid: call validate for that.

      Parameters

      • doc: unknown

      Returns MeshLoadResult

      2026-Q4

      experimental — stable-by target: 2027-Q2