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

interface IMeshTraversal in Tinman.Terrain.Meshing

Base interface for classes that implement hierarchical mesh traversal, using the meshes sector quad-tree (see MeshTree, obtainable via Tree).

interface IMeshTraversal extends IMeshBound
  base of IMeshAction
  MeshTraversal

Attributes

FilterIn

The mesh tree input filter to use for querying sector culling and marks.

property FilterIn { set }
type MeshTreeFilter
value The filter or null.

Remarks:

The default value is null (i.e. all mesh sectors are visited).

See also:

MeshTree.GetRoot
MeshTree.GetChild
MeshTree.GetDown

FilterOut

The mesh tree output filter to use for performing sector culling and marking.

property FilterOut { get set }
type MeshTreeFilter
value The mesh tree filter object.

Remarks:

This MeshTreeFilter is not reset automatically. The application is responsible to call Reset.

The default value is null (i.e. the input filter is used in that case).

See also:

MeshTree.SectorCull
MeshTree.SectorMark
MeshTree.SectorMarkRoots

HasMesh

Has this object been bound to an IMesh object?

property HasMesh { get }
type bool
value true if this object is currently bound to an IMesh, false if not.
inherited IMeshBound.HasMesh

Mesh

The CLOD mesh this object is currently bound to.

property Mesh { get }
type IMesh
value The CLOD mesh or null.
inherited IMeshBound.Mesh

Tree

The filtered MeshTree of this mesh traversal object.

property Tree { get }
type MeshTree
value [not-null] The filtered MeshTree object or null if this object is not bound.

Methods

MeshBind

Binds this object to the given IMesh.

method MeshBind (IMesh mesh)
params mesh The mesh object.
inherited IMeshBound.MeshBind

MeshUnbind

Unbinds this object from its current IMesh.

method MeshUnbind ()
inherited IMeshBound.MeshUnbind

VisitFaces

Visits the given mesh root sectors.

method VisitFaces (CubemapFace meshFace = CubemapFace.All)
params meshFace The mesh face to traverse. Defaults to All.

VisitQuadrant

Visits a quadrant of the given mesh sector on the current face, assuming that the corresponding child mesh sector does not exist.

method VisitQuadrant (int32 sector, int32 childIdx)
params sector Index of center vertex of sector to visit.
  childIdx Index of non-existing child sector in sector.

Remarks:

The quadtree data structure for visiting the given sector can be obtained by getting the Tree property of the current mesh (see MeshBind.

VisitSector

Visits the given mesh sector on the current face.

method VisitSector (int32 sector)
params sector Index of center vertex of sector to visit.

Remarks:

The quadtree data structure for visiting the given sector can be obtained by getting the Tree property of the current mesh (see MeshBind.