IVisibleCheck
Description
- Derived from
- Extended by
-
VisibleCheck abstract
Base interface for classes that implement a visibility check for terrain mesh vertices.
Public / Methods
Add
Adds the given visibility check to this one, so that a mesh vertex will be visible if at least one of both returns true
.
- See also
IsVertexVisible
Computes whether the given vertex shall be visible in the terrain mesh or not.
This method will be called repeatedly only by the refinement thread of the MeshBuffer. Thus, as long as no other code is called it, thread-safe code is not required here.
Prepare
Prepares this visibility check for a refinement cycle.
This method is called once before a refinement cycle is performed. Implementations should prepare their internal state so that the result of any subsequent invocation of IsVertexVisible does not depend on the mutable properties of the implementing class. Otherwise, CLOD mesh refinement will not be deterministic (see MeshBuffer).