C# Class 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.

Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Свойство Type Description
indexData Axiom.Graphics.IndexData
useSharedVertices bool
vertexData Axiom.Graphics.VertexData

Protected Properties

Свойство Type Description
boneAssignmentList List>.Dictionary
boneAssignmentsOutOfDate bool
isMaterialInitialized bool
lodFaceList List
materialName string
operationType Axiom.Graphics.OperationType
parent Axiom.Core.Mesh
vertexAnimationType VertexAnimationType

Méthodes publiques

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

Méthodes protégées

Méthode Description
CompileBoneAssignments ( ) : void

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

dispose ( bool disposeManagedResources ) : void

Method Details

AddBoneAssignment() public méthode

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

ClearBoneAssignments() public méthode

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

CompileBoneAssignments() protected méthode

Must be called once to compile bone assignments into geometry buffer.
protected CompileBoneAssignments ( ) : void
Résultat void

GetRenderOperation() public méthode

Overloaded method.
public GetRenderOperation ( RenderOperation op ) : void
op Axiom.Graphics.RenderOperation
Résultat void

GetRenderOperation() public méthode

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

RemoveLodLevels() public méthode

public RemoveLodLevels ( ) : void
Résultat void

SubMesh() public méthode

Basic contructor.
public SubMesh ( ) : System
Résultat System

dispose() protected méthode

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Résultat void

Property Details

boneAssignmentList protected_oe property

List of bone assignment for this mesh.
protected Dictionary> boneAssignmentList
Résultat List>.Dictionary

boneAssignmentsOutOfDate protected_oe property

Flag indicating that bone assignments need to be recompiled.
protected bool boneAssignmentsOutOfDate
Résultat bool

indexData public_oe property

public IndexData,Axiom.Graphics indexData
Résultat Axiom.Graphics.IndexData

isMaterialInitialized protected_oe property

protected bool isMaterialInitialized
Résultat bool

lodFaceList protected_oe property

protected List lodFaceList
Résultat List

materialName protected_oe property

Name of the material assigned to this subMesh.
protected string materialName
Résultat string

operationType protected_oe property

Mode used for rendering this submesh.
protected OperationType,Axiom.Graphics operationType
Résultat Axiom.Graphics.OperationType

parent protected_oe property

The parent mesh that this subMesh belongs to.
protected Mesh,Axiom.Core parent
Résultat Axiom.Core.Mesh

useSharedVertices public_oe property

Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
public bool useSharedVertices
Résultat bool

vertexAnimationType protected_oe property

Type of vertex animation for dedicated vertex data (populated by Mesh)
protected VertexAnimationType vertexAnimationType
Résultat VertexAnimationType

vertexData public_oe property

public VertexData,Axiom.Graphics vertexData
Résultat Axiom.Graphics.VertexData