IMeshTraversal

Description

interface Tinman.Terrain.Meshing.IMeshTraversal

Derived from

IMeshFilters

Extended by

IBatchContainerBase
IMeshAction
MeshTraversal abstract

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

Public / Methods

Visit​Faces


public method VisitFaces → (1)

meshFace opt : CubemapFace = CubemapFace.All

The mesh face to traverse.

Visits the given mesh root sectors.

Visit​Quadrant


public method VisitQuadrant → (2)

sector in : int32

Index of center vertex of sector to visit.

childIdx in : int32

Index of non-existing child sector in sector in.

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

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

Visit​Sector


public method VisitSector → (1)

sector in : int32

Index of center vertex of sector to visit.

Visits the given mesh sector on the current face.

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

Public / Attributes

Filter​Out


public attribute FilterOut → (get,set)

value : MeshTreeFilter

The mesh tree filter object.

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

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

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

Tree


public attribute Tree → (get)

value : MeshTree

[not-null]
The filtered MeshTree object or null if this object is not bound.

The filtered MeshTree of this mesh traversal object.