Skip to content

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

EdgeUse

One use of an edge by a loop, with the direction the loop runs along it.

readonly edge: Edge

The edge being used.


readonly end: Vertex

The vertex where the loop leaves the edge.


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 isReversed: boolean

Whether the loop runs from the edge’s end to its start.


readonly isValid: boolean

Whether the entity still exists in the model.

Entity.isValid


readonly start: Vertex

The vertex where the loop enters the edge.


readonly type: "EdgeUse"

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

Entity.type

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