DistanceCulling

Description

sealed class Tinman.Terrain.Meshing.DistanceCulling

The DistanceCulling class traverses the filtered mesh (see IMeshFilters.FilterIn), performs a visibility tests for each mesh sector with the configured distance range (see Distance) and culls away all sectors that are outside of it (see MeshTree.SectorCull).

Each visited mesh sector is tested for a maximum distance to the camera. If the sector is too far away, it will be culled away (see MeshTree.SectorCull).

The following vertex data semantics are used by this class:

Public / Constructors

DistanceCulling


public constructor DistanceCulling → ()

Creates a new instance of DistanceCulling.

Public / Attributes

Distance


public attribute Distance → (get,set)

value : float64

[>=0]
The maximum distance. Set to 0 to disable culling.

The maximum distance from the camera position to an un-culled terrain mesh sector.

Defaults to 0.

FilterIn


public attribute FilterIn → (get,set)

value : MeshTreeFilter

The filter or null.

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).