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
|
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).
|
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.GetRootThe 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.SectorCullHas 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
|
The CLOD mesh this object is currently bound to.
property
|
Mesh
{
get
}
|
||
type
|
IMesh
|
||
value
|
The
CLOD
mesh
or
null . |
||
inherited
|
IMeshBound.Mesh
|
The filtered MeshTree of this mesh traversal object.
property
|
Tree
{
get
}
|
||
type
|
MeshTree
|
||
value
|
|
The
filtered
MeshTree
object
or
null
if
this
object
is
not
bound.
|
|
inherited
|
IMeshTraversal.Tree
|
Binds this object to the given IMesh.
method
|
MeshBind
(IMesh mesh)
|
||
params
|
mesh
|
The mesh object. | |
inherited
|
IMeshBound.MeshBind
|
Unbinds this object from its current IMesh.
method
|
MeshUnbind
()
|
||
inherited
|
IMeshBound.MeshUnbind
|
Performs the action on the currently bound CLOD mesh.
method
|
Perform
()
|
See also:
CanPerformVisits the given mesh root sectors.
method
|
VisitFaces
(CubemapFace meshFace = CubemapFace.All)
|
||
params
|
meshFace
|
The mesh face to traverse. Defaults to All. | |
inherited
|
IMeshTraversal.VisitFaces
|
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.
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.