3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Shapes::MeshResource Interface Reference

Represents a mesh part or object. More...

Inheritance diagram for Tes::Shapes::MeshResource:
Tes::Resource Tes::Shapes::MeshBase Tes::Handlers::MeshResourcePlaceholder Tes::Shapes::PointCloud Tes::Shapes::SimpleMesh

List of all members.

Public Member Functions

uint VertexCount (int stream=0)
 Exposes the number of vertices in the mesh.
uint IndexCount (int stream=0)
 Exposes the number of indices in the mesh.
Vector3[] Vertices (int stream=0)
 Supports iteration of the vertices of the mesh.
ushort[] Indices2 (int stream=0)
 Supports iteration of the indices of the mesh when using two byte indices.
int[] Indices4 (int stream=0)
 Supports iteration of the indices of the mesh when using four byte indices.
Vector3[] Normals (int stream=0)
 Supports iteration of the normal of the mesh.
Vector2[] UVs (int stream=0)
 Supports iteration of the UV coordinates of the mesh.
uint[] Colours (int stream=0)
 Supports iteration of per vertex colours of the mesh.

Properties

Matrix4 Transform [get]
 Root transform for the mesh.
uint Tint [get]
 A global tint colour applied to the mesh.
byte DrawType [get]
 The DrawType of the mesh.
int IndexSize [get]
 Defines the byte size used by indices in this mesh.

Detailed Description

Represents a mesh part or object.

These are visualised via MeshSet, which may contain several

Mesh

parts.

The Resource.TypeID for Mesh is Tes.Net.RoutingID.Mesh.


Member Function Documentation

uint [] Tes::Shapes::MeshResource::Colours ( int  stream = 0)

Supports iteration of per vertex colours of the mesh.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

uint Tes::Shapes::MeshResource::IndexCount ( int  stream = 0)

Exposes the number of indices in the mesh.

Returns:
The number of indices in this mesh.
Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

ushort [] Tes::Shapes::MeshResource::Indices2 ( int  stream = 0)

Supports iteration of the indices of the mesh when using two byte indices.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, and Tes::Handlers::MeshResourcePlaceholder.

int [] Tes::Shapes::MeshResource::Indices4 ( int  stream = 0)

Supports iteration of the indices of the mesh when using four byte indices.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

Vector3 [] Tes::Shapes::MeshResource::Normals ( int  stream = 0)

Supports iteration of the normal of the mesh.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

Vector2 [] Tes::Shapes::MeshResource::UVs ( int  stream = 0)

Supports iteration of the UV coordinates of the mesh.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

uint Tes::Shapes::MeshResource::VertexCount ( int  stream = 0)

Exposes the number of vertices in the mesh.

Returns:
The number of vertices in this mesh.
Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

Vector3 [] Tes::Shapes::MeshResource::Vertices ( int  stream = 0)

Supports iteration of the vertices of the mesh.

Parameters:
streamFor future use. Must be zero.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.


Property Documentation

int Tes::Shapes::MeshResource::IndexSize [get]

Defines the byte size used by indices in this mesh.

The size of each index value in bytes.

Must be 0, 2 or 4. When 2 the Indices2 property must be supported, and Indices4 is optional. When 4, Indices4 must be supported and Indices2 is optional. When zero, neither property is supported: the mesh does not support indices.

Implemented in Tes::Shapes::MeshBase, Tes::Shapes::PointCloud, Tes::Shapes::SimpleMesh, and Tes::Handlers::MeshResourcePlaceholder.

Matrix4 Tes::Shapes::MeshResource::Transform [get]

Root transform for the mesh.

This defines the origin.

Implemented in Tes::Shapes::MeshBase.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events