#include <RmMesh.h>
Public Member Functions | |
| RmMeshModelContainer () | |
| Constructor. | |
| virtual | ~RmMeshModelContainer () |
| Destructor. | |
| virtual RmMeshModel * | CreateNewMeshModel () |
| Create new mesh model. | |
| void | AddMeshModel (RmMeshModel *pModel) |
| Add mesh tolist. | |
| void | DestroyMeshModel (RmMeshModel *pModel) |
| Destroy MeshModel. | |
| void | DestroyAllMeshModels () |
| Destroy all models. | |
| void | GetGeometryStatistics (int &nNumVertices, int &nNumPrimitives) |
| Compute polygonal statistics (number of vertices, primitives). | |
| RmMeshModelListIterator | BeginModel () |
| Begin iterator. | |
| RmMeshModelListConstIterator | BeginModel () const |
| Begin iterator. | |
| RmMeshModelListIterator | EndModel () |
| End iterator. | |
| RmMeshModelListConstIterator | EndModel () const |
| End iterator. | |
| int | GetNumModels () |
| Number of models. | |
| void | Copy (RmMeshModelContainer *pDestContainer) |
| Copy mesh container. | |
| void | SetBoundBoxDirty (bool bDirty) |
| Set boundbox dirty flag. | |
| void | UpdateBoundBox () |
| Update Boundbox. | |
| RmBoundBox & | GetBoundBox () |
| Get bound box. | |
| bool | GetBoundSphere (RmVector3D ¢er, float &radius) |
| Bound sphere. | |
| void | SetCentroidDirty (bool bDirty) |
| Set centroid dirty flag. | |
| void | UpdateCentroid () |
| Recompute cnetroid. | |
| RmVector3D & | GetCentroid () |
| Get centroid. | |
Mesh Container
|
|
Constructor. Constructor |
|
|
Destructor. Destructor |
|
|
Add mesh tolist. Add to list ( as a root model, if model belongs to other model, it should not be added here, instead added to parent model as a child )
|
|
|
Begin iterator. Returns an iterator that points to the beginning of the model list
|
|
|
Begin iterator.
|
|
|
Copy mesh container. Copy ( copies data to destination )
|
|
|
Create new mesh model. Overridable to create custom MeshModel ( new class derived from MeshModel )
|
|
|
Destroy all models. Destroy all models in this container
|
|
|
Destroy MeshModel.
|
|
|
End iterator. Returns an iterator that points to the end of the model list
|
|
|
End iterator. Returns an iterator that points to the end of the model list
|
|
|
Get bound box. Get boundbox. If dirty flag is set, it calls update to recompute boundbox
|
|
||||||||||||
|
Bound sphere. Get bounding sphere. Returns false if bound sphere is empty
|
|
|
Get centroid. Get centroid of mesh. If dirty flag is set, it calls UpdateCentroid to recomoute centroid.
|
|
||||||||||||
|
Compute polygonal statistics (number of vertices, primitives). Compute polygonal statistics (number of vertices, primitives) for this model container. Note: this method INCREMENTS the incoming nNumVertices and nNumPrimitives, so to start counting from the very beginning, they must be manually reset by the caller of this method.
|
|
|
Number of models. Returns the number of models
|
|
|
Set boundbox dirty flag. BoundBox ( currently only use POSITION0 data, must be float3 )
|
|
|
Set centroid dirty flag. Set Centroid dirty flag. Set this to true, if vertices are modified.
|
|
|
Update Boundbox. Recomputes bound box
|
|
|
Recompute cnetroid. Recomoute centroid
|
1.3.6