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

class TerrainModel in Tinman.AddOns.Components

Describes a 3D model that is placed somewhere onto the terrain.

sealed class TerrainModel extends MeshBoundBase

Remarks

The position properties of the TerrainModel class refer to the coordinate origin of the model-space of Model.

Public / Attributes

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 MeshBoundBase.HasMesh

IsValid

public property IsValid { get }
type bool
value

Mesh

The CLOD mesh this object is currently bound to.

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

Model

The 3D model.

public property Model { get set }
type IModel
value The 3D model or null.

Transform

The transformation between model-space and terrain-space.

public property Transform { get set }
type ITerrainTransform
value The transformation or null.

Public / Methods

Bounds

Outputs the bounds of this terrain model to the given box soup.

public method Bounds (BoxSoup bounds)
params bounds [not-null] The output box soup.

MeshBind

Binds this object to the given IMesh.

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

MeshUnbind

Unbinds this object from its current IMesh.

public override method MeshUnbind ()
overrides MeshBoundBase.MeshUnbind