Urho.Geometry Class

Defines one or more vertex buffers, an index buffer and a draw range.

See Also: Geometry


public class Geometry : UrhoObject


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

The members of Urho.Geometry are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.Geometry which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Geometry, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Geometry 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

BufferHashUInt16. Return buffers' combined hash value for state sorting.
EmptyBoolean. Return whether has empty draw range.
IndexBufferIndexBuffer. Return the index buffer. Or Set the index buffer.
IndexCountUInt32. Return number of indices.
IndexStartUInt32. Return start index.
LodDistanceSingle. Return LOD distance. Or Set the LOD distance.
NumVertexBuffersUInt32. Return number of vertex buffers.
PrimitiveTypePrimitiveType. Return primitive type.
TypeStringHash. Urho's type system type.
TypeNameString. Urho's low-level type name.
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
VertexBuffersIReadOnlyList<VertexBuffer>. Return all vertex buffers.
VertexCountUInt32. Return number of used vertices.
VertexStartUInt32. Return first used vertex.

Public Methods

GetHitDistance(Ray, Vector3*, Vector2*) : Single
Return ray hit distance or infinity if no hit. Requires raw data to be set. Optionally return hit normal and hit uv coordinates at intersect point.
GetVertexBuffer(UInt32) : VertexBuffer
Return vertex buffer by index.
IsInside(Ray) : Boolean
Return whether or not the ray is inside geometry.
SetDrawRange(PrimitiveType, UInt32, UInt32, Boolean) : Boolean
Set the draw range.
SetDrawRange(PrimitiveType, UInt32, UInt32, UInt32, UInt32, Boolean) : Boolean
Set the draw range.
SetNumVertexBuffers(UInt32) : Boolean
Set number of vertex buffer.
SetVertexBuffer(UInt32, VertexBuffer) : Boolean