Commonplace kernel API
    Preparing search index...

    Interface Vertex

    A mesh vertex: a position plus one outgoing half-edge into the rotation fan.

    2025-Q4

    stable

    interface Vertex {
        halfEdge: HalfEdge | null;
        hidden?: true;
        id: string;
        isPoint?: true;
        position: Vector3;
        tags?: TagSet;
        tol?: number;
    }
    Index
    halfEdge: HalfEdge | null
    hidden?: true

    Hide and Show: a hidden plotted point (see HalfEdge.hidden). Points only.

    id: string
    isPoint?: true

    A plotted point mark — the zero-dimensional authored entity (AutoCAD's POINT, the first mark in a drafting app's mark core). Set by the point tool; the renderer draws a screen-constant cross at every flagged vertex.

    The flag exists because halfEdge === null is NOT the same question. An isolated vertex can also be topological residue — deleteEntities does not remove an erased edge's now-isolated endpoints — and residue is not a mark the user authored. Keying the glyph on the flag rather than on isolation is what keeps erasing an edge from sprouting two points the user never plotted.

    Absence discipline (a lesson from drafting apps' construction flags): only ever a literal true, never an own isPoint: undefined key, and serialized omit-when-absent by HalfEdgeMeshIO — so a mesh authored before points existed round-trips byte-identically.

    Data only: no kernel operation reads it. A flagged vertex that later acquires edges (a line drawn to it) keeps the flag and keeps its glyph, which is a drafting app's behavior — the mark records the user's intent and persists until erased.

    position: Vector3
    tags?: TagSet

    ADR-128 D2 — the tags a plotted point carries (TagSet.ts). Meaningful on an isPoint vertex only; absent when untagged.

    tol?: number

    ADR-126 D2: its own tolerance, stored only above its edges'. See EntityTolerance.ts.