Commonplace kernel API
    Preparing search index...

    Interface MeshDocumentExperimental

    One mesh saved as JSON: JSON.stringify it to write a file.

    2026-Q4

    experimental — stable-by target: 2027-Q2

    interface MeshDocument {
        format: "commonplace-kernel-mesh";
        formatVersion: string;
        mesh: {
            faces: unknown[];
            halfEdges: unknown[];
            vertices: unknown[];
            [key: string]: unknown;
        };
    }
    Index
    format: "commonplace-kernel-mesh"
    formatVersion: string
    mesh: {
        faces: unknown[];
        halfEdges: unknown[];
        vertices: unknown[];
        [key: string]: unknown;
    }

    HalfEdgeMesh.toJSON(): vertices, half-edges and faces by id.