|
MeshDataChannelTypes Enumeration |
MeshDataChannelTypes enum defined possible mesh data channel types.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax [FlagsAttribute]
public enum MeshDataChannelTypes
Members Member name | Value | Description |
---|
None | 0 |
None
|
VertexData | 1 |
Array with vertex data that is used by the mesh (can be PositionNormalTextureVertex, PositionColorVertex, etc.)
|
Positions | 2 |
Positions
|
Normals | 4 |
Normals
|
TextureCoordinates | 16 |
Texture coordinates
|
TextureCoordinates1 | 32 |
Additional Texture coordinates
|
TextureCoordinates2 | 64 |
Additional Texture coordinates
|
TextureCoordinates3 | 256 |
Additional Texture coordinates
|
TextureCoordinates4 | 512 |
Additional Texture coordinates
|
TextureCoordinates5 | 1,024 |
Additional Texture coordinates
|
Tangents | 2,048 |
Tangents
|
BiTangents | 4,096 |
BiTangents
|
BlendWeights | 8,192 |
BlendWeights
|
BlendIndices | 16,384 |
BlendIndices
|
VertexColors | 32,768 |
VertexColors that can be used by the VertexColorMaterial to define colors of the vertices or by the PixelMaterial to define pixel colors.
|
PixelColors | 32,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.
|
PixelSizes | 65,536 |
PixelSizes that can be used by the PixelMaterial to define size of pixels.
|
VertexSizes | 65,536 |
VertexSizes is the same as PixelSizes and can be used by the PixelMaterial to define size of pixels.
|
TriangleIndices | 131,072 |
Array of index values to the Positions array that define individual mesh triangles. Each triangle is defined by 3 triangle indices.
|
EdgeLineIndices | 262,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.
|
PolygonIndices | 524,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.
|
Metadata | 1,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.
|
DebugStream | 2,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.
|
Other | 4,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