Skip to main content

Overview

The SiteNode is the root node of the scene graph hierarchy. It represents a construction site with a property boundary polygon and contains buildings and items. Key features:
  • Defines property boundary as a 2D polygon
  • Contains buildings and site-level items
  • Root of the scene graph (no parent)

Type Signature

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

Fields

Inherited from BaseNode

string
required
Unique site identifier.Format: site_{randomString}Example: "site_a1b2c3d4e5f6g7h8"
string
required
Always set to "site".Default: "site"
string
Optional name for the site.Example: "Downtown Development Project"
null
required
Always null for site nodes (root of hierarchy).Default: null
boolean
Controls site visibility.Default: true
CameraSchema
Optional camera viewpoint for the site.
any
Custom metadata for the site.Default: {}

Site-Specific Fields

PropertyLineData
Property boundary defined as a 2D polygon.Structure:
Default: 30x30 meter square centered at origin:
The points define the property line boundary in the site coordinate system. Points are in [x, z] format (y is up).
Array<BuildingNode | ItemNode>
required
Array of buildings and items on the site.Default: Creates one default building: [BuildingNode.parse({})]Children can be:
  • BuildingNode: Structures on the site
  • ItemNode: Site furniture, equipment, or other 3D objects
The children array uses a discriminated union on the type field for type safety.

Example

Usage

Creating a Site

Custom Property Boundary

Adding Buildings

Hierarchy