TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IMeshBoundDistance in Tinman.Terrain.Meshing

Base interface for IMeshBound implementations that have a common Distance property.

interface IMeshBoundDistance extends ICameraInfoDependent
  base of Batching
  Chunking
  Texturing

Attributes

CameraInfo

The object that provides the current camera position.

property CameraInfo { get set }
type CameraInfo
value [not-null] The camera position provider.
inherited ICameraInfoDependent.CameraInfo

Distance

Skips mesh sectors that are outside of the specified distance range.

property Distance { get set }
type float64
value The distance value (see remarks).

Remarks:

A mesh sector is skipped if:

sign(Distance) * length(C - P) - R > Distance
where C is the camera position, P is the position of the mesh sector center vertex and R is the radius of the bounding sphere of the mesh sector.