IMeshBound

Description

interface Tinman.Terrain.Kernel.IMeshBound

Base interface for classes that need to be bound to a IMesh object for the duration of subsequent actions.

Public / Methods

Mesh​Bind


public method MeshBind → (1)

mesh in : IMesh

The mesh object.

Binds this object to the given IMesh.

TinmanException

If the given mesh in does not provide all data that is required by this object.

Mesh​Unbind


public method MeshUnbind → ()

Unbinds this object from its current IMesh.

Public / Attributes

Has​Mesh


public attribute HasMesh → (get)

value : bool

true if this object is currently bound to a IMesh, false if not.

Has this object been bound to a IMesh object?

Mesh


public attribute Mesh → (get)

value : IMesh

The CLOD mesh or null.

The CLOD mesh this object is currently bound to.

Extensions

Try​Mesh​Bind


public static method TryMeshBind → (1)

mesh in : IMesh

[not-null]
The mesh object.

returns → bool

true if IMeshBound.MeshBind has returned normally,
false if IMeshBound.MeshBind has thrown a TinmanException. In this case, the IMeshBound.MeshUnbind method will have been called, to avoid any inconsistent mesh binding state.

Delegates to IMeshBound.MeshBind and catches TinmanException on failure.