Helper class to set up a basic 3D demo with a Scene, Data, Viewer, WebGLRenderer, and View.

See @xeokit/sdk/demo for usage.

Constructors

Properties

aabb3Index: SceneAABB3Index

Dynamically tracks the 3D boundaries of the objects in the Scene.

cameraFlight: CameraFlightAnimation

The CameraFlightAnimation for the View.

data: Data

The Data created by the DemoHelper. Holds all data models.

renderer: WebGLRenderer

The WebGLRenderer created by the DemoHelper.

scene: Scene

The Scene created by the DemoHelper. Holds all 3D objects.

stats: {
    aabb: AABB3Float;
    data: DataModelStats;
    elapsedTime: number;
    endTime: number;
    scene: SceneModelStats;
    startTime: number;
}

Statistics about the demo, available after calling finished().

Type declaration

  • aabb: AABB3Float

    3D axis-aligned bounding box (AABB) that encloses all objects in the Scene.

  • data: DataModelStats

    Combined statistics of all DataModels in the Data.

  • elapsedTime: number

    The total time taken for demo initialization, in milliseconds.

  • endTime: number

    The time at which the demo initialization ended.

  • scene: SceneModelStats

    The combined statistics of all SceneModels in the Scene.

  • startTime: number

    The time at which the demo initialization started.

view: View

The View created by the DemoHelper.

viewer: Viewer

The Viewer created by the DemoHelper.

Methods