Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

Vertex

A point where edges meet.

readonly edges: readonly Edge[]

The edges that meet at the vertex.


readonly entityId: number

Identifier that stays the same for the entity’s lifetime, including across undo and redo.

Entity.entityId


readonly isDeleted: boolean

Whether the entity was deleted, for example by an edit or by undo.

Entity.isDeleted


readonly isValid: boolean

Whether the entity still exists in the model.

Entity.isValid


readonly type: "Vertex"

The concrete class name, for narrowing unions such as AnyElement.

Entity.type

get position(): Point3d

Position in the vertex’s own context, in meters. Assigning moves it inside Model.operation, like Entities.moveVertices.

Point3d

set position(value): void

Point3dLike

void

toJSON(): object

JSON.stringify writes the entity as its type and entityId, plus its name when it has one, such as { "type": "Group", "entityId": 12, "name": "Wheel" }.

object

entityId: number

optional name?: string

type: "Material" | "Vertex" | "Edge" | "Face" | "Loop" | "EdgeUse" | "Curve" | "ArcCurve" | "ComponentDefinition" | "ComponentInstance" | "Group" | "Layer" | "Guide" | "Text" | "LinearDimension" | "SectionPlane"

Entity.toJSON