Base class: Object

Lua
C++
Edit

Mesh

The mesh class is a collection of vertices and polygons that form visible surfaces.

Property Type Description
bounds const Aabb& read-only mesh bounding box
extra shared_ptr<Object> user-defined data
indices const vector<uint32_t>& read-only array of primitive indices
material const shared_ptr<Material>& read-only material object
materials const array<shared_ptr<Material>, 4>& read-only materials array
name WString user-defined name
type const MeshPrimitives& read-only mesh primitive type
vertices const vector<Vertex>& read-only array of mesh vertices
AddPrimitive Method adds a new polygon to the mesh
AddVertex Method adds a new vertex to the mesh
Copy Method makes a copy of the mesh
CountPrimitives Method returns the number of mesh primitives
CountVertices Method returns the number of mesh vertices
GetPrimitiveAttributes Method gets attributes of a single primitive
GetRenderLayers Method gets the mesh render layers
GetVertexColor Method gets the color of a vertex
GetVertexPosition Method gets the position of a vertex
GetVertexNormal Method gets the normal of a vertex
GetVertexTexCoords Method gets the texture coordinates of a vertex
Modify Method batch modify vertices and indices
Recenter Method recenters a mesh along one or more axes
Rotate Method rotates a mesh
Scale Method scales a mesh
SetMaterial Method sets the mesh material
SetPrimitiveAttributes Method sets attributes of a single primitive
SetRenderLayers Method sets the mesh render layers
SetSkinned Method enables or disables mesh skinning
SetVertexColor Method sets the position of a vertex
SetVertexPosition Method sets the position of a vertex
SetVertexNormal Method sets the normal of a vertex
SetVertexTexCoords Method sets the texture coordinates of one vertex
Transform Method transforms a mesh
Translate Method translates a mesh
UpdateBounds Method updates the mesh bounding box
UpdateNormals Method calculates new mesh normals
UpdateTangents Method updates the mesh tangents
CreateMesh Function creates a new mesh object
Copyright © 2024 Ultra Software.
All rights reserved.