C# Класс Assimp.Mesh

A mesh represents geometry with a single material.
Наследование: IMarshalable
Показать файл Открыть проект Примеры использования класса

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