The Mesh class.
| Constructors | |
|---|---|
| New | Creates a new mesh. |
| Properties | |
|---|---|
| Bounds | Mesh bounding box. (read only) |
| NumIndices | Total number of indices. (read only) |
| NumMaterials | Number of materials. (read only) |
| NumVertices | Number of vertices. (read only) |
| Methods | |
|---|---|
| AddMaterials | Adds materials to the mesh. |
| AddMesh | Adds a mesh to this mesh. |
| AddTriangle | Adds a single triangle the mesh. |
| AddTriangles | Adds triangles to the mesh. |
| AddVertex | Adds a single vertex. |
| AddVertices | Adds vertices. |
| Clear | Clears the mesh. |
| ClearVertices | Clear the mesh vertices. |
| Compact | Compacts the mesh. |
| CopyTexCoords | Copies texcoord0 to texcoord1. |
| FitVertices | Fits all vertices in the mesh to a box. |
| FlipTriangles | Flips all triangles. |
| GetAllIndices | |
| GetIndices | Get indices for a material id. |
| GetVertex | Gets a single vertex. |
| GetVertices | Gets all vertices as an array. |
| ResizeVertices | |
| ScaleTexCoords | Scales texture coordinates. |
| SetTriangle | |
| SetTriangles | Sets tthe triangles for a material in the mesh. |
| SetVertex | Sets a single vertex. |
| SetVertices | Sets a range of vertices. |
| TransformVertices | Transforms all vertices in the mesh. |
| UpdateNormals | Updates mesh normals. |
| UpdateTangents | Updates mesh tangents. |
| Functions | |
|---|---|
| Load | Loads a mesh from a file. |