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

Inheritance: LoaderTempSceneObject
Afficher le fichier Open project: Patapom/GodComplex Class Usage Examples

Protected Properties

Свойство Type Description
m_Faces List
m_FacesAsArray ConsolidatedFace[]
m_Material FBXImporter.Material
m_OverrideMaterial Material
m_OwnerMesh LoaderTempMesh
m_Streams VertexStream[]
m_Vertices List

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public AddFace ( ConsolidatedFace _Face ) : void
_Face ConsolidatedFace
Résultat void

BuildFromMaster() public méthode

Builds a slave primitive from a master consolidated primitive
public BuildFromMaster ( Primitive _Master ) : void
_Master Primitive
Résultat void

Consolidate() public méthode

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
Résultat void

InsertConsolidatedVertex() protected méthode

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
Résultat ConsolidatedVertex

Primitive() public méthode

public Primitive ( LoaderTempMesh _OwnerMesh, SceneLoader _Owner, string _Name, FBXImporter _Material ) : System
_OwnerMesh LoaderTempMesh
_Owner SceneLoader
_Name string
_Material FBXImporter
Résultat System

Property Details

m_Faces protected_oe property

protected List m_Faces
Résultat List

m_FacesAsArray protected_oe property

protected ConsolidatedFace[] m_FacesAsArray
Résultat ConsolidatedFace[]

m_Material protected_oe property

protected FBXImporter.Material m_Material
Résultat FBXImporter.Material

m_OverrideMaterial protected_oe property

protected Material,FBX.SceneLoader.Objects m_OverrideMaterial
Résultat Material

m_OwnerMesh protected_oe property

protected LoaderTempMesh,FBX.SceneLoader.Objects m_OwnerMesh
Résultat LoaderTempMesh

m_Streams protected_oe property

protected VertexStream[] m_Streams
Résultat VertexStream[]

m_Vertices protected_oe property

protected List m_Vertices
Résultat List