Summary

A ['a'] 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.

Constructors

Mesh

Properties

Bounds Sets AABB bounds for this mesh.
HasIndexBuffer Whether this mesh has an index buffer.
HasVertexBuffer Whether this mesh has a vertex buffer.
IndexCount Number of indices this mesh has.
IsValid
Material Sets material for this mesh.
PrimitiveType Sets the primitive type for this mesh.
UvDensity Used to calculate texture size for texture streaming.
VertexCount Number of vertices this mesh has.

Methods

CreateBuffers Create vertex and index buffers.
CreateIndexBuffer Create an empty index buffer, it can be resized later
CreateVertexBuffer Create an empty vertex buffer, it can be resized later
LockIndexBuffer Lock all the memory in this buffer so you can write to it
LockVertexBuffer
SetIndexBufferData
SetIndexBufferSize Resize the index buffer.
SetIndexRange Set how many indices this mesh draws
SetVertexBufferData
SetVertexBufferSize Resize the vertex buffer
SetVertexRange Set how many vertices this mesh draws (if there's no index buffer)

Static Methods

TriangulatePolygon
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.