Overview
TheLevelNode represents a single floor or level within a building. It contains walls, slabs (floors), zones (rooms), ceilings, roofs, scans, and guides.
Key features:
- Represents a single floor in a building
- Contains walls, slabs, zones, and other architectural elements
- Has a level number for vertical positioning
Type Signature
/home/daytona/workspace/source/packages/core/src/schema/nodes/level.ts
Fields
Inherited from BaseNode
Unique level identifier.Format:
level_{randomString}Example: "level_m1n2o3p4q5r6s7t8"Always set to
"level".Default: "level"Optional name for the level.Example:
"Ground Floor", "First Floor", "Basement"Reference to the parent building’s ID.Example:
"building_xyz789"Default: nullControls level visibility.Default:
trueOptional camera viewpoint for the level.
Custom metadata for the level.Default:
{}Level-Specific Fields
The level number indicating the vertical position in the building.Default:
0 (ground floor)Examples:-1for basement0for ground floor1for first floor2for second floor
Array of child node IDs belonging to this level.Default:
[]Valid child types:WallNode.shape.id- Wall elementsZoneNode.shape.id- Room/zone definitionsSlabNode.shape.id- Floor slabsCeilingNode.shape.id- Ceiling elementsRoofNode.shape.id- Roof elementsScanNode.shape.id- 3D scan dataGuideNode.shape.id- Construction guides
["wall_aaa111", "wall_bbb222", "slab_ccc333", "zone_ddd444"]Example
Usage
Creating a Level
Adding Elements to a Level
Multi-Story Building
Coordinate System
Level elements use the building’s local coordinate system:- The level number determines vertical (Y) elevation
- Walls, slabs, and zones use 2D coordinates in the XZ plane
- The Y coordinate is typically implied by the level number
Hierarchy
Related
- BaseNode - Inherited base fields
- BuildingNode - Parent node containing levels
- WallNode - Walls within a level
- SlabNode - Floor slabs within a level
- ZoneNode - Zones/rooms within a level