C# Class Assimp.Mesh

A mesh represents geometry with a single material.
Inheritance: IMarshalable
Afficher le fichier Open project: juanjp600/cbre Class Usage Examples

Private Properties

Свойство Type Description
ClearBuffers void
CopyTo Assimp.Vector3D[]
GetUnsignedIndices uint[]
IMarshalable void
IMarshalable void

Méthodes publiques

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

Private Methods

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

Method Details

FreeNative() public static méthode

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

GetIndices() public méthode

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

GetShortIndices() public méthode

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

HasTextureCoords() public méthode

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

HasVertexColors() public méthode

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

Mesh() public méthode

Constructs a new instance of the Mesh class.
public Mesh ( ) : Assimp.Unmanaged
Résultat Assimp.Unmanaged

Mesh() public méthode

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

Mesh() public méthode

Constructs a new instance of the Mesh class.
public Mesh ( String name ) : Assimp.Unmanaged
name String Name of the mesh.
Résultat Assimp.Unmanaged

Mesh() public méthode

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

SetIndices() public méthode

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