class Mesh extends Object (client-side)
Available since version: 0.3.8.1
This class represents mesh visual class (.msh).
Properties
int& numPoly (read-only)
Represents the number of polygons used by the mesh.
int& numVert (read-only)
Represents the number of vertices used by the mesh.
int& numFeat (read-only)
Represents the number of VertexFeature objects from featList used by the mesh.
BBox3d& bbox3d
Represents the bounding box 3d of mesh.
OBBox3d& obbox3d
Represents the oriented bounding box 3d of mesh.
int& masterFrameCtr
Represents the master frame counter used by the mesh (unused by the game).
Mesh&|null next (read-only)
Represents the next mesh inside a list of all meshes.
Mesh&|null prev (read-only)
Represents the previous mesh inside a list of all meshes.
bool& hasLightmaps
Represents true if Mesh has light maps, otherwise false.
int& numVertAlloc (read-only)
Represents the number of allocated vertices.
int& numPolyAlloc (read-only)
Represents the number of allocated polygons.
Methods
getVertex
Returns a Vertex from the mesh vertex list by index.
Vertex&|null getVertex(int index)
Parameters:
intindex: the vertex list index.
Returns Vertex&|null:
getPolygon
Returns a Polygon from the mesh polygon list by index.
Polygon&|null getPolygon(int index)
Parameters:
intindex: the polygon list index.
Returns Polygon&|null:
getFeature
Returns a VertexFeature from the mesh feature list by index.
VertexFeature&|null getFeature(int index)
Parameters:
intindex: the feature list index.
Returns VertexFeature&|null:
Callbacks
No callbacks.