The TerrainBounds class traverses the filtered mesh (see IMeshFilters.FilterIn) and outputs a bounding box in terrain-space for each mesh sector (see BoundsSectors), optionally clipped to the bounding box of the terrain and the view frustum.
The following vertex data semantics are used by this class:
Creates a new instance of TerrainBounds.
Computes the terrain bounds for the current mesh.
If not bound to a mesh, only the given additional bounds opt are used to compute the terrain bounds.
- See also
The mesh tree input filter to use for querying sector culling and marks.
The default value is
null (i.e. all mesh sectors are visited).