C# Класс FBX.SceneLoader.Objects.LoaderTempMesh

Наследование: LoaderTempSceneObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_BBox BoundingBox
m_CollapsedLayerElementMeshes FBX.SceneLoader.Objects.LoaderTempMesh[]
m_CollapsedLayerElements FBXImporter.LayerElement[]
m_Faces FBXImporter.NodeMesh.Triangle[]
m_LayerElementBiNormal FBXImporter.LayerElement
m_LayerElementNormal FBXImporter.LayerElement
m_LayerElementPosition FBXImporter.LayerElement
m_LayerElementTangent FBXImporter.LayerElement
m_LayerElements List
m_LayerElementsExternal List
m_LayerElementsReference List
m_MasterMesh LoaderTempMesh
m_OverrideMaterial Material
m_Pivot Matrix4x4
m_Primitives List
m_SlaveMesh2Registered bool>.Dictionary
m_SlaveMeshes List
m_UVSetsCount int
m_Vertices System.Point[]

Открытые методы

Метод Описание
AddExternalLayerElement ( LoaderTempMesh _OwnerMesh, FBXImporter _LayerElement ) : void

Adds a layer element from another (slave) mesh

AddLayerElement ( FBXImporter _LayerElement ) : void

Adds a layer element to the mesh, hence adding a new entry to the vertex buffer

BuildPrimitives ( ) : void

This builds the mesh primitives that we'll be able to use at runtime

CreateBox ( BoundingBox _BBox, Material _Material ) : void

Creates a box mesh

LoaderTempMesh ( SceneLoader _Owner, string _Name ) : System
MergeWithMasterMesh ( LoaderTempMesh _Master ) : bool

Attempts to merge this mesh with the provided master mesh If the provided mesh can be used as a master for this mesh then the identical layer elements are "shared by reference" and the layer elements that differ are kept in this mesh and added as external elements to the master mesh. In the end, only the master meshes will be optimized, and this mesh's data along with them so all is left is to retrieve the optimized referenced data from the master mesh and make them our own.

PerformConsolidation ( ) : void

Performs mesh consolidation and builds any missing tangent space information

RebuildFromMasterMesh ( ) : void

Rebuilds the slave mesh from its consolidated master mesh

ReplaceLayerElementByAReference ( FBXImporter _LayerElementSource, LoaderTempMesh _OwnerMesh, FBXImporter _LayerElementReference ) : void

Replaces a layer element from this mesh by a reference to another element from another mesh

SetFaces ( FBXImporter _Faces ) : void

Sets the mesh's array of faces

SetVertices ( System.Point _Vertices ) : void

Sets the mesh's array of vertices

Защищенные методы

Метод Описание
BuildConsolidatedVertex ( ConsolidatedFace _Face, int _FaceVertexIndex, int _VertexIndex ) : ConsolidatedVertex

Builds a consolidated vertex

BuildTangentSpace ( List _Faces, TANGENT_SPACE_AVAILABILITY _TSAvailability, bool _bGenerateMissingTangentSpace ) : void

Generates the tangent space informations at face level (called by Commit())

Описание методов

AddExternalLayerElement() публичный Метод

Adds a layer element from another (slave) mesh
public AddExternalLayerElement ( LoaderTempMesh _OwnerMesh, FBXImporter _LayerElement ) : void
_OwnerMesh LoaderTempMesh The mesh owning the layer element to add
_LayerElement FBXImporter The external layer element
Результат void

AddLayerElement() публичный Метод

Adds a layer element to the mesh, hence adding a new entry to the vertex buffer
public AddLayerElement ( FBXImporter _LayerElement ) : void
_LayerElement FBXImporter
Результат void

BuildConsolidatedVertex() защищенный Метод

Builds a consolidated vertex
protected BuildConsolidatedVertex ( ConsolidatedFace _Face, int _FaceVertexIndex, int _VertexIndex ) : ConsolidatedVertex
_Face ConsolidatedFace The face referencing this vertex
_FaceVertexIndex int The index of the vertex in that face
_VertexIndex int The index of the vertex to build
Результат ConsolidatedVertex

BuildPrimitives() публичный Метод

This builds the mesh primitives that we'll be able to use at runtime
public BuildPrimitives ( ) : void
Результат void

BuildTangentSpace() защищенный Метод

Generates the tangent space informations at face level (called by Commit())
protected BuildTangentSpace ( List _Faces, TANGENT_SPACE_AVAILABILITY _TSAvailability, bool _bGenerateMissingTangentSpace ) : void
_Faces List The list of faces to build tangent space for
_TSAvailability TANGENT_SPACE_AVAILABILITY A combination of availability flags for tangent space reconstruction
_bGenerateMissingTangentSpace bool Generates the missing tangent space data
Результат void

CreateBox() публичный Метод

Creates a box mesh
public CreateBox ( BoundingBox _BBox, Material _Material ) : void
_BBox BoundingBox The mesh's box in local space
_Material Material The material to use for the box
Результат void

LoaderTempMesh() публичный Метод

public LoaderTempMesh ( SceneLoader _Owner, string _Name ) : System
_Owner SceneLoader
_Name string
Результат System

MergeWithMasterMesh() публичный Метод

Attempts to merge this mesh with the provided master mesh If the provided mesh can be used as a master for this mesh then the identical layer elements are "shared by reference" and the layer elements that differ are kept in this mesh and added as external elements to the master mesh. In the end, only the master meshes will be optimized, and this mesh's data along with them so all is left is to retrieve the optimized referenced data from the master mesh and make them our own.
public MergeWithMasterMesh ( LoaderTempMesh _Master ) : bool
_Master LoaderTempMesh
Результат bool

PerformConsolidation() публичный Метод

Performs mesh consolidation and builds any missing tangent space information
public PerformConsolidation ( ) : void
Результат void

RebuildFromMasterMesh() публичный Метод

Rebuilds the slave mesh from its consolidated master mesh
public RebuildFromMasterMesh ( ) : void
Результат void

ReplaceLayerElementByAReference() публичный Метод

Replaces a layer element from this mesh by a reference to another element from another mesh
public ReplaceLayerElementByAReference ( FBXImporter _LayerElementSource, LoaderTempMesh _OwnerMesh, FBXImporter _LayerElementReference ) : void
_LayerElementSource FBXImporter The source layer element to replace
_OwnerMesh LoaderTempMesh The mesh that owns the referenced layer element
_LayerElementReference FBXImporter The layer element to reference in place of our own layer element
Результат void

SetFaces() публичный Метод

Sets the mesh's array of faces
public SetFaces ( FBXImporter _Faces ) : void
_Faces FBXImporter
Результат void

SetVertices() публичный Метод

Sets the mesh's array of vertices
public SetVertices ( System.Point _Vertices ) : void
_Vertices System.Point
Результат void

Описание свойств

m_BBox защищенное свойство

protected BoundingBox m_BBox
Результат BoundingBox

m_CollapsedLayerElementMeshes защищенное свойство

protected LoaderTempMesh[],FBX.SceneLoader.Objects m_CollapsedLayerElementMeshes
Результат FBX.SceneLoader.Objects.LoaderTempMesh[]

m_CollapsedLayerElements защищенное свойство

protected FBXImporter.LayerElement[] m_CollapsedLayerElements
Результат FBXImporter.LayerElement[]

m_Faces защищенное свойство

protected FBXImporter.NodeMesh.Triangle[] m_Faces
Результат FBXImporter.NodeMesh.Triangle[]

m_LayerElementBiNormal защищенное свойство

protected FBXImporter.LayerElement m_LayerElementBiNormal
Результат FBXImporter.LayerElement

m_LayerElementNormal защищенное свойство

protected FBXImporter.LayerElement m_LayerElementNormal
Результат FBXImporter.LayerElement

m_LayerElementPosition защищенное свойство

protected FBXImporter.LayerElement m_LayerElementPosition
Результат FBXImporter.LayerElement

m_LayerElementTangent защищенное свойство

protected FBXImporter.LayerElement m_LayerElementTangent
Результат FBXImporter.LayerElement

m_LayerElements защищенное свойство

protected List m_LayerElements
Результат List

m_LayerElementsExternal защищенное свойство

protected List m_LayerElementsExternal
Результат List

m_LayerElementsReference защищенное свойство

protected List m_LayerElementsReference
Результат List

m_MasterMesh защищенное свойство

protected LoaderTempMesh,FBX.SceneLoader.Objects m_MasterMesh
Результат LoaderTempMesh

m_OverrideMaterial защищенное свойство

protected Material,FBX.SceneLoader.Objects m_OverrideMaterial
Результат Material

m_Pivot защищенное свойство

protected Matrix4x4 m_Pivot
Результат Matrix4x4

m_Primitives защищенное свойство

protected List m_Primitives
Результат List

m_SlaveMesh2Registered защищенное свойство

protected Dictionary m_SlaveMesh2Registered
Результат bool>.Dictionary

m_SlaveMeshes защищенное свойство

protected List m_SlaveMeshes
Результат List

m_UVSetsCount защищенное свойство

protected int m_UVSetsCount
Результат int

m_Vertices защищенное свойство

protected Point[],System m_Vertices
Результат System.Point[]