The bounding volume of a tile, in the frame of the tileset. Supports the sphere and box
volume types.
Properties
sphere: BoundingSphere | null
Methods
setSphereData(
x: number,
y: number,
z: number,
radius: number,
transform: Mat4
): voidsetObbData(
// The 12 numbers of a 3D Tiles `box`: center, then the x, y and z half-axis vectors.
data: Array<number>,
transform: Mat4
): voiddistanceToPoint( point: Vec3 ): numberReturns the distance from the volume to the point, or 0 when the point is inside.
intersectsFrustum(
// The frustum, in the frame of the tileset.
frustum: Frustum,
// The six planes of the frustum.
frustumPlanes: Array<Plane>,
// The eight corners of the frustum.
frustumPoints: Array<Vec3>
): boolean