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

class TerrainTransformAppend in Tinman.AddOns.Components

sealed class TerrainTransformAppend extends TerrainTransform

Public / Attributes

Count

Returns the number of aggregated transforms.

public property Count { get }
type int32
value [>=1] The number of aggregated transforms.

HasMesh

Has this object been bound to an IMesh object?

public property HasMesh { get }
type bool
value true if this object is currently bound to an IMesh, false if not.
inherited TerrainTransform.HasMesh

Mesh

The CLOD mesh this object is currently bound to.

public property Mesh { get }
type IMesh
value The CLOD mesh or null.
inherited TerrainTransform.Mesh

ToModel

Returns the transformation matrix from terrain-space to model-space, (re-)computing it if necessary.

public override property ToModel { get }
type Mat4D
value The transformation matrix.
implements TerrainTransform.ToModel

ToTerrain

Returns the transformation matrix from model-space to terrain-space, (re-)computing it if necessary.

public override property ToTerrain { get }
type Mat4D
value The transformation matrix.
implements TerrainTransform.ToTerrain

Version

Returns the current version of object.

public property Version { get }
type int32
value The current version number.
inherited VersionedBase.Version

Remarks:

For each modification, the version is incremented by at least one.

Public / Methods

Append

Appends the given transform to this one.

public override method Append (ITerrainTransform other)
type ITerrainTransform
params other [not-null] The other terrain transform.
returns [not-null] The resulting terrain transform.
overrides TerrainTransform.Append

Remarks:

The concatenated transforms are applied as follows:

where V is a point in model-space and V' is a point in terrain-space.

At

Returns an aggregated transform.

public method At (int32 index)
type ITerrainTransform
params index [0..Count-1] Index of transform.
returns [not-null] The aggregated transform.

MeshBind

Binds this object to the given IMesh.

public override method MeshBind (IMesh mesh)
params mesh The mesh object.
overrides TerrainTransform.MeshBind

MeshUnbind

Unbinds this object from its current IMesh.

public override method MeshUnbind ()
overrides TerrainTransform.MeshUnbind