Skip to content

Material

A named color that faces, edges and placements can use.

readonly color: Color

Red, green, blue and alpha, each from 0 to 1.


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 name: string

Material name.


readonly type: "Material"

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

Entity.type