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

class TerrainVisibleCheck in Tinman.Terrain.Visibility

The TerrainVisibleCheck is the default implementation of the IVisibleCheck interface for terrain-space visible checks.

sealed class TerrainVisibleCheck extends DefaultVisibleCheck

Remarks

Use this class for generating static meshes (collision meshes, for example).

Public / Attributes

ErrorMaterial

Include surface materials (see Material) in visible check?

public property ErrorMaterial { get set }
type bool
value true if surface materials are included in the visible check, false if not.
inherited DefaultVisibleCheck.ErrorMaterial

See also:

Semantic.ErrorMaterial

ErrorNormal

Include surface normals (see Normal) in visible check?

public property ErrorNormal { get set }
type bool
value true if surface normals are included in the visible check, false if not.
inherited DefaultVisibleCheck.ErrorNormal

See also:

Semantic.ErrorNormal

ErrorPosition

Include surface geometry (see Position) in visible check?

public property ErrorPosition { get set }
type bool
value true if surface geometry is included in the visible check, false if not.
inherited DefaultVisibleCheck.ErrorPosition

See also:

Semantic.ErrorPosition

ErrorTexture

Include surface texture (see Texture) in visible check?

public property ErrorTexture { get set }
type bool
value true if surface texture is included in the visible check, false if not.
inherited DefaultVisibleCheck.ErrorTexture

See also:

Semantic.ErrorTexture

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.

[Pure]
public virtual method Add (IVisibleCheck check)
type IVisibleCheck
params check [not-null] The visibility check to add.
returns [not-null] The resulting visibility check.
inherited VisibleCheck.Add

See also:

IVisibleCheck.Remove

Contains

Does this visible check contain the given one?

[Pure]
public virtual method Contains (IVisibleCheck check)
type bool
params check [not-null] The visible check.
returns true if check is contained, i.e. calling Add will return this.
false if check is not contained, i.e. calling Remove will return this.
inherited VisibleCheck.Contains

IsVertexVisible

Computes whether the given vertex shall be visible in the terrain mesh or not.

[Pure]
public override method IsVertexVisible (int32 v, int32 g, int32 a, float64 thresholdSqr)
type bool
params v The vertex to check for visibility.
  g Grand-parent of v.
  a Ancestor vertex of v.
  thresholdSqr The tolerated squared terrain-space vertex error.
returns true if the squared terrain-space vertex error value is greater than thresholdSqr (i.e. the vertex will be visible in the terrain mesh), false if not (i.e. the vertex will be invisible).
implements VisibleCheck.IsVertexVisible

Remarks:

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.

Remove

Removes the given vertex visibility check from this one, so that a mesh vertex will only be visible if this one returns true.

[Pure]
public virtual method Remove (IVisibleCheck check)
type IVisibleCheck
params check [not-null] The visibility check to remove.
returns [not-null] The resulting visibility check.
inherited VisibleCheck.Remove

See also:

IVisibleCheck.Add

SetVertexArrays

Sets the vertex data containers from which this vertex converter shall read vertex data.

public override method SetVertexArrays (VertexArrays vertexArrays)
params vertexArrays [not-null] The vertex data collection.
inherited DefaultVisibleCheck.SetVertexArrays

ToString

[Pure]
public override method ToString ()
type string
overrides DefaultVisibleCheck.ToString