|
vtlib library
|

Public Member Functions | |
| void | AddMesh (vtMesh *pMesh, int iMatIdx) |
| void | RemoveMesh (vtMesh *pMesh) |
| void | RemoveAllMeshes () |
| void | AddTextMesh (vtTextMesh *pMesh, int iMatIdx, bool bOutline=true) |
| uint | NumMeshes () const |
| vtMesh * | GetMesh (int i) const |
| vtTextMesh * | GetTextMesh (int i) const |
Public Member Functions inherited from NodeExtension | |
| void | SetEnabled (bool bOn) |
| bool | GetEnabled () const |
| void | SetCastShadow (bool b) |
| Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
| bool | GetCastShadow () |
| Get whether this node casts a shadow. | |
| void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
| Get the Bounding Sphere of the node. | |
A vtGeode is a "Geometry Node "which can contain any number of visible vtMesh objects.
| void vtGeode::AddMesh | ( | vtMesh * | pMesh, |
| int | iMatIdx | ||
| ) |
Add a mesh to this geometry.
| pMesh | The mesh to add |
| iMatIdx | The material index for this mesh, which is an index into the material array of the geometry. |
| void vtGeode::AddTextMesh | ( | vtTextMesh * | pMesh, |
| int | iMatIdx, | ||
| bool | bOutline = true |
||
| ) |
Add a text mesh to this geometry.
| pMesh | The mesh to add |
| iMatIdx | The material index for this mesh, which is an index into the material array of the geometry. |
| bOutline | true to put a dark outline around the text for contrast. |
| vtTextMesh * vtGeode::GetTextMesh | ( | int | i | ) | const |
Return a contained vtTextMesh by index.
| uint vtGeode::NumMeshes | ( | ) | const |
Return the number of contained meshes.
| void vtGeode::RemoveAllMeshes | ( | ) |
Remove all meshes from the geomtry. They are refcounted so there is no need to worry about freeing them.
| void vtGeode::RemoveMesh | ( | vtMesh * | pMesh | ) |
Remove a mesh from the geomtry. Has no effect if the mesh is not currently contained.
1.8.10