Click or drag to resize

Mesh Class

A mesh represents geometry with a single material.
Inheritance Hierarchy
SystemObject
  Internal.AssimpMesh

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public sealed class Mesh : IMarshalable<Mesh, AiMesh>

The Mesh type exposes the following members.

Constructors
 NameDescription
Public methodMesh Constructs a new instance of the Mesh class.
Public methodMesh(PrimitiveType) Constructs a new instance of the Mesh class.
Public methodMesh(String) Constructs a new instance of the Mesh class.
Public methodMesh(String, PrimitiveType) Constructs a new instance of the Mesh class.
Top
Properties
 NameDescription
Public propertyBiTangents Gets the vertex bitangent list.
Public propertyBoneCount Gets the number of bones that influence this mesh.
Public propertyBones Gets the bones that influence this mesh.
Public propertyBoundingBox Gets or sets the axis aligned bounding box that contains the extents of the mesh.
Public propertyFaceCount Gets the number of faces contained in the mesh.
Public propertyFaces Gets the mesh's faces. Each face will contain indices to the vertices.
Public propertyHasBones Gets if this mesh has bones.
Public propertyHasFaces Gets if the mesh contains faces. If no special scene flags are set, this should always return true.
Public propertyHasMeshAnimationAttachments Gets if this mesh has mesh animation attachments.
Public propertyHasNormals Gets if the mesh as normals. If it does exist, the count should be the same as the vertex count.
Public propertyHasTangentBasis Gets if the mesh has tangents and bitangents. It is not possible for one to be without the other. If it does exist, the count should be the same as the vertex count.
Public propertyHasVertices Gets if the mesh has a vertex array. This should always return true provided no special scene flags are set.
Public propertyMaterialIndex Gets or sets the index of the material associated with this mesh.
Public propertyMeshAnimationAttachmentCount Gets the number of mesh animation attachments that influence this mesh.
Public propertyMeshAnimationAttachments Gets the mesh animation attachments that influence this mesh.
Public propertyMorphMethod Gets or sets the morph method used when animation attachments are used.
Public propertyName Gets or sets the mesh name. This tends to be used when formats name nodes and meshes independently, vertex animations refer to meshes by their names, or importers split meshes up, each mesh will reference the same (dummy) name.
Public propertyNormals Gets the vertex normal list.
Public propertyPrimitiveType Gets or sets the primitive type. This may contain more than one type unless if SortByPrimitiveType option is not set.
Public propertyTangents Gets the vertex tangent list.
Public propertyTextureCoordinateChannelCount Gets the number of valid texture coordinate channels contained in the mesh (list is not empty/not null). This can be a value between zero and the maximum texture coordinate count. Each individual channel should be the size of VertexCount.
Public propertyTextureCoordinateChannels Gets the array that contains each texture coordinate channel, by default all are lists of zero (but can be set to null). Each index in the array corresponds to the texture coordinate channel. The length of the array corresponds to Assimp's maximum UV channel limit.
Public propertyUVComponentCount Gets the array that contains the count of UV(W) components for each texture coordinate channel, usually 2 (UV) or 3 (UVW). A component value of zero means the texture coordinate channel does not exist. The channel index (index in the array) corresponds to the texture coordinate channel index.
Public propertyVertexColorChannelCount Gets the number of valid vertex color channels contained in the mesh (list is not empty/not null). This can be a value between zero and the maximum vertex color count. Each individual channel should be the size of VertexCount.
Public propertyVertexColorChannels Gets the array that contains each vertex color channels, by default all are lists of zero (but can be set to null). Each index in the array corresponds to the texture coordinate channel. The length of the array corresponds to Assimp's maximum vertex color channel limit.
Public propertyVertexCount Gets the number of vertices in this mesh. This is the count that all per-vertex lists should be the size of.
Public propertyVertices Gets the vertex position list.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberFreeNative Frees unmanaged memory created by ToNative(IntPtr, Native).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetIndices Convenience method for accumulating all face indices into a single index array.
Public methodGetShortIndices Convenience method for accumulating all face indices into a single index array.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetUnsignedIndices Convenience method for accumulating all face indices into a single index array as unsigned integers (the default from Assimp, if you need them).
Public methodHasTextureCoords 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 methodHasVertexColors 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 methodSetIndices Convienence method for setting this meshe's face list from an index buffer.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also