ConeCulling

Description

sealed class Tinman.Terrain.Meshing.ConeCulling

The ConeCulling class traverses the filtered mesh (see IMeshFilters.FilterIn), performs a visibility tests for each mesh sector with the configured cone (see ConeOrigin, ConeDirection and ConeAngle) and culls away all sectors that are outside of it (see MeshTree.SectorCull).

Each visited mesh sector is tested against the cone. If it lies outside the frustum, it will be culled away (see MeshTree.SectorCull).

If CameraInfo or Viewport is left uninitialized, the IMeshBoundMinSize.MinSize settings will be ignored during cone culling.

The following vertex data semantics are used by this class:

Public / Constructors

Cone​Culling


public constructor ConeCulling → ()

Creates a new instance of ConeCulling.

Public / Attributes

Cone​Angle


public attribute ConeAngle → (get,set)

value : float64

[0..360]
The opening angle, in degrees.

The cone opening angle.

Cone​Direction


public attribute ConeDirection → (get,set)

value : Vec3D

The unit-length cone direction vector, in terrain-space.

Direction vector, pointing from cone apex vertex towards cone opening.

Cone​Origin


public attribute ConeOrigin → (get,set)

value : Vec3D

The cone origin, in terrain-space.

Coordinates of cone apex vertex.

Filter​In


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