C# 클래스 Assimp.Mesh

A mesh represents geometry with a single material.
상속: IMarshalable
파일 보기 프로젝트 열기: juanjp600/cbre 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ClearBuffers void
CopyTo Assimp.Vector3D[]
GetUnsignedIndices uint[]
IMarshalable void
IMarshalable void

공개 메소드들

메소드 설명
FreeNative ( IntPtr nativeValue, bool freeNative ) : void

Frees unmanaged memory created by IMarshalable{Mesh, AiMesh}.ToNative.

GetIndices ( ) : int[]

Convienence method for accumulating all face indices into a single index array.

GetShortIndices ( ) : short[]

Convienence method for accumulating all face indices into a single index array.

HasTextureCoords ( int channelIndex ) : bool

Checks if the mesh has texture coordinates for the specified channel. This returns false if the list is null or empty. The channel, if it exists, should contain the same number of entries as VertexCount.

HasVertexColors ( int channelIndex ) : bool

Checks if the mesh has vertex colors for the specified channel. This returns false if the list is null or empty. The channel, if it exists, should contain the same number of entries as VertexCount.

Mesh ( ) : Assimp.Unmanaged

Constructs a new instance of the Mesh class.

Mesh ( PrimitiveType primType ) : Assimp.Unmanaged

Constructs a new instance of the Mesh class.

Mesh ( String name ) : Assimp.Unmanaged

Constructs a new instance of the Mesh class.

Mesh ( String name, PrimitiveType primType ) : Assimp.Unmanaged

Constructs a new instance of the Mesh class.

SetIndices ( Array indices, int indicesPerFace ) : bool

Convienence method for setting this meshe's face list from an index buffer.

비공개 메소드들

메소드 설명
ClearBuffers ( ) : void
CopyTo ( List list, Array copy ) : Assimp.Vector3D[]
GetUnsignedIndices ( ) : uint[]
IMarshalable ( &nativeValue ) : void

Reads the unmanaged data from the native value.

IMarshalable ( IntPtr thisPtr, &nativeValue ) : void

Writes the managed data to the native value.

메소드 상세

FreeNative() 공개 정적인 메소드

Frees unmanaged memory created by IMarshalable{Mesh, AiMesh}.ToNative.
public static FreeNative ( IntPtr nativeValue, bool freeNative ) : void
nativeValue IntPtr Native value to free
freeNative bool True if the unmanaged memory should be freed, false otherwise.
리턴 void

GetIndices() 공개 메소드

Convienence method for accumulating all face indices into a single index array.
public GetIndices ( ) : int[]
리턴 int[]

GetShortIndices() 공개 메소드

Convienence method for accumulating all face indices into a single index array.
public GetShortIndices ( ) : short[]
리턴 short[]

HasTextureCoords() 공개 메소드

Checks if the mesh has texture coordinates for the specified channel. This returns false if the list is null or empty. The channel, if it exists, should contain the same number of entries as VertexCount.
public HasTextureCoords ( int channelIndex ) : bool
channelIndex int Channel index
리턴 bool

HasVertexColors() 공개 메소드

Checks if the mesh has vertex colors for the specified channel. This returns false if the list is null or empty. The channel, if it exists, should contain the same number of entries as VertexCount.
public HasVertexColors ( int channelIndex ) : bool
channelIndex int Channel index
리턴 bool

Mesh() 공개 메소드

Constructs a new instance of the Mesh class.
public Mesh ( ) : Assimp.Unmanaged
리턴 Assimp.Unmanaged

Mesh() 공개 메소드

Constructs a new instance of the Mesh class.
public Mesh ( PrimitiveType primType ) : Assimp.Unmanaged
primType PrimitiveType Primitive types contained in the mesh.
리턴 Assimp.Unmanaged

Mesh() 공개 메소드

Constructs a new instance of the Mesh class.
public Mesh ( String name ) : Assimp.Unmanaged
name String Name of the mesh.
리턴 Assimp.Unmanaged

Mesh() 공개 메소드

Constructs a new instance of the Mesh class.
public Mesh ( String name, PrimitiveType primType ) : Assimp.Unmanaged
name String Name of the mesh
primType PrimitiveType Primitive types contained in the mesh.
리턴 Assimp.Unmanaged

SetIndices() 공개 메소드

Convienence method for setting this meshe's face list from an index buffer.
public SetIndices ( Array indices, int indicesPerFace ) : bool
indices Array Index buffer
indicesPerFace int Indices per face
리턴 bool