A Scene regroups many Meshes It tracks the global bounding box as Meshes are added It keeps a map from instance indices to Meshes and vice versa

Hierarchy

  • Scene

Constructors

Properties

meshes: Mesh[] = []

Accessors

Methods

  • Add an instanced mesh to the Scene and recomputes fields as needed. param mesh Is expected to have: userData.instances = number[] (indices of the g3d instances that went into creating the mesh) userData.boxes = THREE.Box3[] (bounding box of each instance)

    Parameters

    Returns Scene

  • Returns the THREE.Mesh in which this instance is represented along with index For merged mesh, index refers to submesh index For instanced mesh, index refers to instance index.

    Parameters

    • instance: number

    Returns SubMesh[]

Generated using TypeDoc