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

interface IMeshAction in Tinman.Terrain.Meshing

Base interface for IMeshTraversal implementations that perform a specific action on a CLOD mesh (e.g. culling).

interface IMeshAction extends IMeshTraversal
  base of ConeCulling
  DistanceCulling
  FrustumCulling
  HorizonCulling

Attributes

CanPerform

Can the action be performed?

property CanPerform { get }
type bool
value true if the CLOD mesh action can be performed, false if not (calling Perform will return silently in this case).

FilterIn

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

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

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.
inherited IMeshTraversal.FilterOut

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.
inherited IMeshTraversal.Tree

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

Perform

Performs the action on the currently bound CLOD mesh.

method Perform ()

See also:

CanPerform

VisitFaces

Visits the given mesh root sectors.

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

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.
inherited IMeshTraversal.VisitQuadrant

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.
inherited IMeshTraversal.VisitSector

Remarks:

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