C# Класс Axiom.Core.SubMesh

Defines a part of a complete 3D mesh.
Models which make up the definition of a discrete 3D object are made up of potentially multiple parts. This is because different parts of the mesh may use different materials or use different vertex formats, such that a rendering state change is required between them.

Like the Mesh class, instatiations of 3D objects in the scene share the SubMesh instances, and have the option of overriding their material differences on a per-object basis if required. See the SubEntity class for more information.

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

Открытые свойства

Свойство Тип Описание
indexData Axiom.Graphics.IndexData
useSharedVertices bool
vertexData Axiom.Graphics.VertexData

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

Свойство Тип Описание
boneAssignmentList List>.Dictionary
boneAssignmentsOutOfDate bool
isMaterialInitialized bool
lodFaceList List
materialName string
operationType Axiom.Graphics.OperationType
parent Axiom.Core.Mesh
vertexAnimationType VertexAnimationType

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

Метод Описание
AddBoneAssignment ( VertexBoneAssignment boneAssignment ) : void

Assigns a vertex to a bone with a given weight, for skeletal animation.

This method is only valid after setting the SkeletonName property. You should not need to modify bone assignments during rendering (only the positions of bones) and the engine reserves the right to do some internal data reformatting of this information, depending on render system requirements.

ClearBoneAssignments ( ) : void

Removes all bone assignments for this mesh.

This method is for modifying weights to the shared geometry of the Mesh. To assign weights to the per-SubMesh geometry, see the equivalent methods on SubMesh.

GetRenderOperation ( RenderOperation op ) : void

Overloaded method.

GetRenderOperation ( RenderOperation op, int lodIndex ) : void

Fills a RenderOperation structure required to render this mesh.

RemoveLodLevels ( ) : void
SubMesh ( ) : System

Basic contructor.

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

Метод Описание
CompileBoneAssignments ( ) : void

Must be called once to compile bone assignments into geometry buffer.

dispose ( bool disposeManagedResources ) : void

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

AddBoneAssignment() публичный метод

Assigns a vertex to a bone with a given weight, for skeletal animation.
This method is only valid after setting the SkeletonName property. You should not need to modify bone assignments during rendering (only the positions of bones) and the engine reserves the right to do some internal data reformatting of this information, depending on render system requirements.
public AddBoneAssignment ( VertexBoneAssignment boneAssignment ) : void
boneAssignment VertexBoneAssignment
Результат void

ClearBoneAssignments() публичный метод

Removes all bone assignments for this mesh.
This method is for modifying weights to the shared geometry of the Mesh. To assign weights to the per-SubMesh geometry, see the equivalent methods on SubMesh.
public ClearBoneAssignments ( ) : void
Результат void

CompileBoneAssignments() защищенный метод

Must be called once to compile bone assignments into geometry buffer.
protected CompileBoneAssignments ( ) : void
Результат void

GetRenderOperation() публичный метод

Overloaded method.
public GetRenderOperation ( RenderOperation op ) : void
op Axiom.Graphics.RenderOperation
Результат void

GetRenderOperation() публичный метод

Fills a RenderOperation structure required to render this mesh.
public GetRenderOperation ( RenderOperation op, int lodIndex ) : void
op Axiom.Graphics.RenderOperation Reference to a RenderOperation structure to populate.
lodIndex int The index of the LOD to use.
Результат void

RemoveLodLevels() публичный метод

public RemoveLodLevels ( ) : void
Результат void

SubMesh() публичный метод

Basic contructor.
public SubMesh ( ) : System
Результат System

dispose() защищенный метод

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Результат void

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

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

List of bone assignment for this mesh.
protected Dictionary> boneAssignmentList
Результат List>.Dictionary

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

Flag indicating that bone assignments need to be recompiled.
protected bool boneAssignmentsOutOfDate
Результат bool

indexData публичное свойство

public IndexData,Axiom.Graphics indexData
Результат Axiom.Graphics.IndexData

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

protected bool isMaterialInitialized
Результат bool

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

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

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

Name of the material assigned to this subMesh.
protected string materialName
Результат string

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

Mode used for rendering this submesh.
protected OperationType,Axiom.Graphics operationType
Результат Axiom.Graphics.OperationType

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

The parent mesh that this subMesh belongs to.
protected Mesh,Axiom.Core parent
Результат Axiom.Core.Mesh

useSharedVertices публичное свойство

Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
public bool useSharedVertices
Результат bool

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

Type of vertex animation for dedicated vertex data (populated by Mesh)
protected VertexAnimationType vertexAnimationType
Результат VertexAnimationType

vertexData публичное свойство

public VertexData,Axiom.Graphics vertexData
Результат Axiom.Graphics.VertexData