Vertex
A point where edges meet.
Extends
Section titled “Extends”Properties
Section titled “Properties”
readonlyedges: readonlyEdge[]
The edges that meet at the vertex.
entityId
Section titled “entityId”
readonlyentityId:number
Identifier that stays the same for the entity’s lifetime, including across undo and redo.
Inherited from
Section titled “Inherited from”isDeleted
Section titled “isDeleted”
readonlyisDeleted:boolean
Whether the entity was deleted, for example by an edit or by undo.
Inherited from
Section titled “Inherited from”isValid
Section titled “isValid”
readonlyisValid:boolean
Whether the entity still exists in the model.
Inherited from
Section titled “Inherited from”
readonlytype:"Vertex"
The concrete class name, for narrowing unions such as AnyElement.
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”position
Section titled “position”Get Signature
Section titled “Get Signature”get position():
Point3d
Position in the vertex’s own context, in meters. Assigning moves it inside Model.operation, like Entities.moveVertices.
Returns
Section titled “Returns”Set Signature
Section titled “Set Signature”set position(
value):void
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”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" }.
Returns
Section titled “Returns”object
entityId
Section titled “entityId”entityId:
number
optionalname?:string
type:
"Material"|"Vertex"|"Edge"|"Face"|"Loop"|"EdgeUse"|"Curve"|"ArcCurve"|"ComponentDefinition"|"ComponentInstance"|"Group"|"Layer"|"Guide"|"Text"|"LinearDimension"|"SectionPlane"