Skip to main content

Overview

The LevelNode 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

Source: /home/daytona/workspace/source/packages/core/src/schema/nodes/level.ts

Fields

Inherited from BaseNode

string
required
Unique level identifier.Format: level_{randomString}Example: "level_m1n2o3p4q5r6s7t8"
string
required
Always set to "level".Default: "level"
string
Optional name for the level.Example: "Ground Floor", "First Floor", "Basement"
string | null
required
Reference to the parent building’s ID.Example: "building_xyz789"Default: null
boolean
Controls level visibility.Default: true
CameraSchema
Optional camera viewpoint for the level.
any
Custom metadata for the level.Default: {}

Level-Specific Fields

number
required
The level number indicating the vertical position in the building.Default: 0 (ground floor)Examples:
  • -1 for basement
  • 0 for ground floor
  • 1 for first floor
  • 2 for second floor
This number is used to calculate the actual elevation of the level in the 3D scene.
Array<string>
required
Array of child node IDs belonging to this level.Default: []Valid child types:
  • WallNode.shape.id - Wall elements
  • ZoneNode.shape.id - Room/zone definitions
  • SlabNode.shape.id - Floor slabs
  • CeilingNode.shape.id - Ceiling elements
  • RoofNode.shape.id - Roof elements
  • ScanNode.shape.id - 3D scan data
  • GuideNode.shape.id - Construction guides
Example: ["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