Overview
TheSiteNode 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
/home/daytona/workspace/source/packages/core/src/schema/nodes/site.ts
Fields
Inherited from BaseNode
Unique site identifier.Format:
site_{randomString}Example: "site_a1b2c3d4e5f6g7h8"Always set to
"site".Default: "site"Optional name for the site.Example:
"Downtown Development Project"Always
null for site nodes (root of hierarchy).Default: nullControls site visibility.Default:
trueOptional camera viewpoint for the site.
Custom metadata for the site.Default:
{}Site-Specific Fields
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 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
type field for type safety.Example
Usage
Creating a Site
Custom Property Boundary
Adding Buildings
Hierarchy
Related
- BaseNode - Inherited base fields
- BuildingNode - Buildings within a site
- ItemNode - Items on the site