class ProgressiveMesh extends Visual (client-side)
Available since version: 0.3.8.1
This class represents progressive mesh visual.
Properties
BBox3d& bbox3d
Represents the bounding box 3d of progressive mesh.
OBBox3d& obbox3d
Represents the oriented bounding box 3d of progressive mesh.
int numSubMeshes (read-only)
Represents the total number of submeshes used by progressive mesh.
int dataSize (read-only)
Represents the total size in bytes of progressive mesh.
int avgTriArea (read-only)
Represents the triangle list count divided by the bounding box volume ratio.
ProgressiveMeshLODParams& lodParams (read-only)
Represents the LOD params used by the ProgressiveMesh.
int lightingMode (read-only)
Represents the progressive mesh lighting mode.
int pmeshID (read-only)
Represents the progressive mesh unique id.
int renderSortKey (read-only)
Represents the progressive mesh render sort key.
bool hasLOD (read-only)
Represents true if the first submesh of the progressive mesh has LOD, otherwise false.
int numVert (read-only)
Represents the progressive mesh number of vertices.
int numVert (read-only)
Represents the progressive mesh number of triangles.
int lowestLODNumPolys (read-only)
Represents the lowest LOD number of polygons.
Methods
getMesh
This method creates a mesh representation of the progressive mesh. It is intended for debugging and can be expensive. The Gothic implementation currently ignores the LOD index.
Mesh& getMesh(int lodIndex)
Parameters:
intlodIndex: the LOD index passed to the engine
Returns Mesh&:
getPolygon
This method retrieves a polygon of the progressive mesh for debugging. The returned polygon is shared by the engine between calls.
Polygon& getPolygon(int index)
Parameters:
intindex: the polygon index
Returns Polygon&:
static getFileVersion
Returns the progressive mesh file format version.
int getFileVersion()
Returns int:
getMaterialByIndex
This method retrieves the submesh material on given index
Material& getMaterialByIndex(int index)
Parameters:
intindex: the material index
Returns Material&:
Callbacks
No callbacks.