Click or drag to resize
Ab4d.SharpEngine logo

MeshDataChannelTypes Enumeration

MeshDataChannelTypes enum defined possible mesh data channel types.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
[FlagsAttribute]
public enum MeshDataChannelTypes
Members
Member nameValueDescription
None0 None
VertexData1 Array with vertex data that is used by the mesh (can be PositionNormalTextureVertex, PositionColorVertex, etc.)
Positions2 Positions
Normals4 Normals
TextureCoordinates16 Texture coordinates
TextureCoordinates132 Additional Texture coordinates
TextureCoordinates264 Additional Texture coordinates
TextureCoordinates3256 Additional Texture coordinates
TextureCoordinates4512 Additional Texture coordinates
TextureCoordinates51,024 Additional Texture coordinates
Tangents2,048 Tangents
BiTangents4,096 BiTangents
BlendWeights8,192 BlendWeights
BlendIndices16,384 BlendIndices
VertexColors32,768 VertexColors that can be used by the VertexColorMaterial to define colors of the vertices or by the PixelMaterial to define pixel colors.
PixelColors32,768 PixelColors is the same as VertexColors and can be used by the VertexColorMaterial to define colors of the vertices or by the PixelMaterial to define pixel colors.
PixelSizes65,536 PixelSizes that can be used by the PixelMaterial to define size of pixels.
VertexSizes65,536 VertexSizes is the same as PixelSizes and can be used by the PixelMaterial to define size of pixels.
TriangleIndices131,072 Array of index values to the Positions array that define individual mesh triangles. Each triangle is defined by 3 triangle indices.
EdgeLineIndices262,144 Array of int values or List of int values with index values to the Positions array that define edge lines. Each edge line is defined by two indices. Edge lines are not connected to each other.
PolygonIndices524,288 Array of index values to the Positions array that define the polygons from which the mesh was created. Each polygon is defined with defining indices of Positions that are used to define the connected lines that form a polygon. The polygon is then closed with repeating the first index in the polygon. This draws the last polygon segment to the beginning of the first segment. After that the indexes for the next polygon begins. Polygon can be also completed with specifying -1 as an index. This ends the polygon without closing it.
Metadata1,048,576 Metadata defines a Dictionary with string as key and nullable object as value. This channel is used by the SetMetadata(String, Object), GetMetadata(String) and RemoveMetadata(String) methods. If any other type is set to this channel, then those methods will not work.
DebugStream2,097,152 DebugStream can be used to provide debug information about how the mesh was generated. For example, adding lines with arrows, marking positions, ect.
Other4,194,304 Other type can be used by any other channel data type set by the user. If there are more channel data types, then int values bigger than Other can be used.
See Also