Hydrogen Framework  1.3.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput Class Reference

Mesh Output Format More...

Public Member Functions

List< int > GetSubMesh (int material)
 Gets the Indices of a SubMesh with the specified Material DataHashCode. More...
 

Public Attributes

List< TransitionMeshSortedSources = new List<TransitionMesh> ()
 A sorted list of TransitionMeshes More...
 
List< int > Materials = new List<int> ()
 A sorted list of Material DataHashCodes. More...
 
int VertexCount
 The number of vertices present in the Mesh More...
 
List< Vector3 > Vertices = new List<Vector3> ()
 The vertex array. More...
 
List< Color > Colors = new List<Color> ()
 The colors array. More...
 
List< Vector3 > Normals = new List<Vector3> ()
 The normals array. More...
 
List< Vector4 > Tangents = new List<Vector4> ()
 The tangents array. More...
 
List< Vector2 > UV = new List<Vector2> ()
 The UV array. More...
 
List< Vector2 > UV1 = new List<Vector2> ()
 The UV1 array. More...
 
List< Vector2 > UV2 = new List<Vector2> ()
 The UV2 array. More...
 
List< List< int > > Indexes = new List<List<int>> ()
 A list of indexes defining SubMeshes More...
 

Detailed Description

Mesh Output Format

Definition at line 826 of file MeshCombiner.cs.

Member Function Documentation

List<int> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.GetSubMesh ( int  material)

Gets the Indices of a SubMesh with the specified Material DataHashCode.

Returns
The SubMesh Indices list.
Parameters
materialThe Material's DataHashCode

Definition at line 878 of file MeshCombiner.cs.

879  {
880  for (int i = 0; i < Materials.Count; i++) {
881 
882  var m = Materials [i];
883  if (m == material) {
884  return Indexes [i];
885  }
886  }
887  Materials.Add (material);
888  var indexes = new List<int> ();
889  Indexes.Add (indexes);
890  return indexes;
891  }
List< int > Materials
A sorted list of Material DataHashCodes.
List< List< int > > Indexes
A list of indexes defining SubMeshes

Member Data Documentation

List<Color> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Colors = new List<Color> ()

The colors array.

Definition at line 847 of file MeshCombiner.cs.

List<List<int> > Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Indexes = new List<List<int>> ()

A list of indexes defining SubMeshes

Definition at line 871 of file MeshCombiner.cs.

List<int> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Materials = new List<int> ()

A sorted list of Material DataHashCodes.

Definition at line 835 of file MeshCombiner.cs.

List<Vector3> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Normals = new List<Vector3> ()

The normals array.

Definition at line 851 of file MeshCombiner.cs.

List<TransitionMesh> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.SortedSources = new List<TransitionMesh> ()

A sorted list of TransitionMeshes

Definition at line 831 of file MeshCombiner.cs.

List<Vector4> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Tangents = new List<Vector4> ()

The tangents array.

Definition at line 855 of file MeshCombiner.cs.

List<Vector2> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.UV = new List<Vector2> ()

The UV array.

Definition at line 859 of file MeshCombiner.cs.

List<Vector2> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.UV1 = new List<Vector2> ()

The UV1 array.

Definition at line 863 of file MeshCombiner.cs.

List<Vector2> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.UV2 = new List<Vector2> ()

The UV2 array.

Definition at line 867 of file MeshCombiner.cs.

int Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.VertexCount

The number of vertices present in the Mesh

Definition at line 839 of file MeshCombiner.cs.

List<Vector3> Hydrogen.Threading.Jobs.MeshCombiner.MeshOutput.Vertices = new List<Vector3> ()

The vertex array.

Definition at line 843 of file MeshCombiner.cs.