A mesh is a basic version of a Model, containing a set of vertices and indices which make up faces that make up a shape.
A set of meshes can be used to create a Model via the ModelBuilder class.
A mesh is a basic version of a Model, containing a set of vertices and indices which make up faces that make up a shape.
A set of meshes can be used to create a Model via the ModelBuilder class.
Member Name | Summary |
---|---|
IsValid | Indicates whether the mesh is valid. |
PrimitiveType | Sets the primitive type for this mesh. |
Material | Sets material for this mesh. |
Bounds | Sets AABB bounds for this mesh. |
UvDensity | Used to calculate texture size for texture streaming. |
HasIndexBuffer | Whether this mesh has an index buffer. |
IndexCount | Number of indices this mesh has. |
HasVertexBuffer | Whether this mesh has a vertex buffer. |
VertexCount | Number of vertices this mesh has. |
Member Name | Summary |
---|---|
TriangulatePolygon | Triangulates a polygon given a span of vertices. |
Member Name | Summary |
---|---|
SetVertexRange | Sets the range of vertices to be used. |
SetIndexRange | Sets the range of indices to be used. |
CreateBuffers | Creates vertex and index buffers. |
CreateIndexBuffer | Create an empty index buffer, it can be resized later. |
SetIndexBufferData | Sets data for the index buffer. |
SetIndexBufferSize | Sets the size of the index buffer. |
LockIndexBuffer | Locks the index buffer for modification. |
CreateVertexBuffer | Creates a vertex buffer with specified layout. |
SetVertexBufferData | Sets data for the vertex buffer. |
SetVertexBufferSize | Sets the size of the vertex buffer. |
LockVertexBuffer | Locks the vertex buffer for modification. |