Skip to main content

Overview

The ScanNode represents a 3D scan or point cloud that can be loaded into the scene as a reference. This is useful for importing existing building scans, LiDAR data, or photogrammetry models to use as a basis for creating the building model. Key features:
  • Reference to 3D scan/point cloud asset via URL
  • Position, rotation, and scale transformations
  • Opacity control for overlay visualization

Type Signature

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

Fields

Inherited from BaseNode

string
required
Unique scan identifier.Format: scan_{randomString}Example: "scan_a1b2c3d4e5f6g7h8"
string
required
Always set to "scan".Default: "scan"
string
Optional name for the scan.Example: "Building LiDAR Scan", "Ground Floor Point Cloud"
string | null
required
Reference to the parent node’s ID (typically a Site or Building).Example: "building_abc123"Default: null
boolean
Controls scan visibility.Default: true
CameraSchema
Optional camera viewpoint for the scan.
any
Custom metadata for the scan.Default: {}

Scan-Specific Fields

string
required
URL or path to the 3D scan/point cloud asset.Example: "https://example.com/scans/building.ply", "/assets/scan.e57"Supported formats may include: PLY, E57, LAS, LAZ, PCD, or other point cloud formats.
[number, number, number]
required
Position of the scan in 3D space.Format: [x, y, z] in metersDefault: [0, 0, 0]Example: [10, 0, 5]This allows you to place the scan at a specific location in the scene.
[number, number, number]
required
Rotation of the scan around X, Y, and Z axes in radians.Format: [rx, ry, rz] in radiansDefault: [0, 0, 0]Example: [0, Math.PI / 2, 0] (90° rotation around Y axis)This allows you to orient the scan to align with your building model.
number
required
Uniform scale factor for the scan.Default: 1Example: 1.0 (original size), 0.5 (half size), 2.0 (double size)Useful for adjusting scan dimensions to match the scene coordinate system.
number
required
Opacity of the scan visualization (0-100).Default: 100Range: 0 (fully transparent) to 100 (fully opaque)Example: 50 (50% transparent), 100 (fully visible)Lower opacity values are useful for using the scan as a background reference while modeling.

Example

Usage

Creating a Basic Scan Reference

Creating a Positioned and Rotated Scan

Creating a Scaled Scan

Creating Multiple Scans for Different Floors

Creating a High-Opacity Reference Scan

Creating a Faint Background Scan

Common Use Cases

As-Built Documentation

Load existing building scans to create accurate as-built models:

Renovation Projects

Use scans as reference for renovation planning:

Site Context

Include site and surrounding area scans:

Coordinate System

Scans use 3D world coordinates:
  • X axis: horizontal (left-right)
  • Y axis: vertical (up-down)
  • Z axis: horizontal (front-back)
  • Rotation: Euler angles [rx, ry, rz] in radians
  • Scale: Uniform scaling factor

Supported Formats

While the schema accepts any URL string, common point cloud formats include:
  • PLY (Polygon File Format)
  • E57 (ASTM standard for 3D imaging)
  • LAS/LAZ (LiDAR data format)
  • PCD (Point Cloud Data)
  • XYZ (ASCII point cloud)
Check your viewer’s documentation for supported formats.