MeshTraversal

Description

abstract class Tinman.Terrain.Meshing.MeshTraversal

Derived from

MeshBoundBase
IMeshTraversal

Extended by

BatchContainerBase abstract
ConeCulling sealed
CoverageCulling sealed
DistanceCulling sealed
DistanceToGround sealed
FrustumCulling sealed
HorizonCulling sealed
Picking sealed
RangeCulling sealed
RegionCulling sealed
TerrainBounds sealed
Triangulation sealed

Abstract base class for IMeshTraversal implementations.

Public / Attributes

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

Protected / Constructors

Mesh​Traversal


protected constructor MeshTraversal → ()

Creates a new instance of MeshTraversal.

Protected / Methods

Bounding​Sphere​Quadrant


[Pure]
protected method BoundingSphereQuadrant → (2)

sector in : int32

The leaf sector.

childIdx in : int32

The quadrant index.

returns → Sphere

The bounding sphere.

Builds a bounding sphere for the given leaf sector quadrant.

Visit​Children


protected method VisitChildren → (1)

sector in : int32

The mesh sector.

Convenience method that calls IMeshTraversal.VisitSector resp. IMeshTraversal.VisitQuadrant for the four quadrants of the given mesh sector.

Visit​Face​Begin


protected virtual method VisitFaceBegin → (1)

face in : CubemapFace

The cubemap face.

returns → bool

true to perform mesh traversal for the given cubemap face in,
false to skip mesh traversal.

Called from IMeshTraversal.VisitFaces for each cubemap face, before IMeshTraversal.VisitSector is called for the root sector.

The default implementation always returns true.

Visit​Face​End


protected virtual method VisitFaceEnd → (1)

face in : CubemapFace

The cubemap face.

Called from IMeshTraversal.VisitFaces for each cubemap face, after IMeshTraversal.VisitSector has been called.

This method is only called if VisitFaceBegin has returned true.

Protected / Attributes

face


protected attribute face → (CubemapFace)

The current cubemap face.

filter​In


protected attribute filterIn → (MeshTreeFilter)

Optional mesh tree filter to use.

filter​Out


protected attribute filterOut → (MeshTreeFilter)

The output mesh tree filter object (will never be null).

triangle​Fan


protected readonly attribute triangleFan → (int32 [ ])

Helper array to use for Triangulator.Fan.