Urho.Model Class

3D model resource.

See Also: Model

Syntax

public class Model : Resource

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Model are listed below.

See Also: Resource

Public Constructors

Constructs a new instance of Urho.Model which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Model, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Model linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

BoundingBoxBoundingBox. Return bounding box. Or Set local-space bounding box.
[read-only]
IndexBuffersIReadOnlyList<IndexBuffer>. Return index buffers.
NumGeometriesUInt32. Return number of geometries. Or Set number of geometries.
[read-only]
NumMorphsUInt32. Return number of vertex morphs.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
[read-only]
VertexBuffersIReadOnlyList<VertexBuffer>. Return vertex buffers.

Public Methods

override
BeginLoad(File) : Boolean
override
BeginLoad(MemoryBuffer) : Boolean
Clone() : Model
Clone(String) : Model
Clone the model. The geometry data is deep-copied and can be modified in the clone without affecting the original.
override
EndLoad() : Boolean
Finish resource loading. Always called from the main thread. Return true if successful.
GetGeometry(UInt32, UInt32) : Geometry
Return geometry by index and LOD level. The LOD level is clamped if out of range.
GetGeometryCenter(UInt32) : Vector3
Return geometry center by index.
GetMorph(String) : ModelMorph*
Return vertex morph by name.
GetMorph(UInt32) : ModelMorph*
Return vertex morph by index.
GetMorph(StringHash) : ModelMorph*
Return vertex morph by name hash.
GetMorphRangeCount(UInt32) : UInt32
Return vertex buffer morph range vertex count.
GetMorphRangeStart(UInt32) : UInt32
Return vertex buffer morph range start.
GetNumGeometryLodLevels(UInt32) : UInt32
Return number of LOD levels in geometry.
static
RegisterObject(Context)
Register object factory.
override
Save(File) : Boolean
override
Save(MemoryBuffer) : Boolean
SetGeometry(UInt32, UInt32, Geometry) : Boolean
Set geometry.
SetGeometryCenter(UInt32, Vector3) : Boolean
Set geometry center.
SetNumGeometryLodLevels(UInt32, UInt32) : Boolean
Set number of LOD levels in a geometry.