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.

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
indexData Axiom.Graphics.IndexData
useSharedVertices bool
vertexData Axiom.Graphics.VertexData

보호된 프로퍼티들

프로퍼티 타입 설명
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