Appearance
Spaces
A JSON object containing all Space entities in the project. Spaces are indexed by numerical keys, allowing access via spaces[0], spaces[1], etc.
Element Object
| Key | Type | Description |
|---|---|---|
meshes | Array<Mesh> | 3D representations of the element. |
dsProps | Object | Snaptrude properties (common + space-specific properties). |
geometries | Object | Vertex data defining the geometry mesh. |
dsProps
Space properties include common BIM properties plus the following space-specific properties:
| Key | Type | Description |
|---|---|---|
departmentId | String | ID of the department this space belongs to. |
massType | String | Defines the type of space (e.g. Building, Furniture, Department etc.) |
room_type | String | Label of the space. |
Mesh Object
The Mesh object contains the standard 3D data and Snaptrude-specific properties.
| Key | Type | Description |
|---|---|---|
uniqueId | Number | The globally unique identifier for this element (referenced by Storeys). |
name | String | Name of the mesh. |
position | Array<Number> | [x, y, z] position. |
rotation | Array<Number> | [x, y, z] rotation (Euler angles). |
scaling | Array<Number> | [x, y, z] scaling. |
localMatrix | Array<Number> | 16-element array representing the transformation matrix. |
geometryId | String | Reference to the geometry definition. |
materialId | String | Reference to the material. |
subMeshes | Array | Sub-mesh definitions (indices, vertices count). |