C# Class FBX.SceneLoader.Objects.LoaderTempMesh.Primitive

Inheritance: LoaderTempSceneObject
Datei anzeigen Open project: Patapom/GodComplex Class Usage Examples

Protected Properties

Property Type Description
m_Faces List
m_FacesAsArray ConsolidatedFace[]
m_Material FBXImporter.Material
m_OverrideMaterial Material
m_OwnerMesh LoaderTempMesh
m_Streams VertexStream[]
m_Vertices List

Public Methods

Method Description
AddFace ( ConsolidatedFace _Face ) : void
BuildFromMaster ( Primitive _Master ) : void

Builds a slave primitive from a master consolidated primitive

Consolidate ( ) : void

Consolidates the mesh defined by the primitive's array of faces This will actually merge vertices that are considered equal, thus reducing their number Consolidated faces will be re-ordered to map the new consolidated vertices

Primitive ( LoaderTempMesh _OwnerMesh, SceneLoader _Owner, string _Name, FBXImporter _Material ) : System

Protected Methods

Method Description
InsertConsolidatedVertex ( List _ConsolidatedVertices, Dictionary _Dictionary, int _OriginalVertexIndex, ConsolidatedVertex _Vertex ) : ConsolidatedVertex

Inserts the provided consolidated vertex into the list of vertices If there already exists a matching vertex in the list of consolidated vertices, then this vertex is returned instead

Method Details

AddFace() public method

public AddFace ( ConsolidatedFace _Face ) : void
_Face ConsolidatedFace
return void

BuildFromMaster() public method

Builds a slave primitive from a master consolidated primitive
public BuildFromMaster ( Primitive _Master ) : void
_Master Primitive
return void

Consolidate() public method

Consolidates the mesh defined by the primitive's array of faces This will actually merge vertices that are considered equal, thus reducing their number Consolidated faces will be re-ordered to map the new consolidated vertices
public Consolidate ( ) : void
return void

InsertConsolidatedVertex() protected method

Inserts the provided consolidated vertex into the list of vertices If there already exists a matching vertex in the list of consolidated vertices, then this vertex is returned instead
protected InsertConsolidatedVertex ( List _ConsolidatedVertices, Dictionary _Dictionary, int _OriginalVertexIndex, ConsolidatedVertex _Vertex ) : ConsolidatedVertex
_ConsolidatedVertices List The list where to insert the vertex in case it does not already exist
_Dictionary Dictionary The dictionary yielding the list of consolidated vertices associated to each original position vertex (as the only forever common data of all vertices --consolidated or not-- is their position)
_OriginalVertexIndex int The index of the original position vertex
_Vertex ConsolidatedVertex The consolidated vertex to insert
return ConsolidatedVertex

Primitive() public method

public Primitive ( LoaderTempMesh _OwnerMesh, SceneLoader _Owner, string _Name, FBXImporter _Material ) : System
_OwnerMesh LoaderTempMesh
_Owner SceneLoader
_Name string
_Material FBXImporter
return System

Property Details

m_Faces protected_oe property

protected List m_Faces
return List

m_FacesAsArray protected_oe property

protected ConsolidatedFace[] m_FacesAsArray
return ConsolidatedFace[]

m_Material protected_oe property

protected FBXImporter.Material m_Material
return FBXImporter.Material

m_OverrideMaterial protected_oe property

protected Material,FBX.SceneLoader.Objects m_OverrideMaterial
return Material

m_OwnerMesh protected_oe property

protected LoaderTempMesh,FBX.SceneLoader.Objects m_OwnerMesh
return LoaderTempMesh

m_Streams protected_oe property

protected VertexStream[] m_Streams
return VertexStream[]

m_Vertices protected_oe property

protected List m_Vertices
return List