This reference page is linked to from the following overview topics: Capping a Shape with a Mesh.
#include <captypes.h>
This class is used to apply the MeshCapInfo data to a mesh.
It will modify the mesh as required to add the cap. Simply fill in the vertices and faces bordering the cap, then call the CapMesh method. All methods of this class are implemented by the system.
Public Member Functions |
|
CoreExport | MeshCapper (PolyShape &shape) |
CoreExport | ~MeshCapper () |
Destructor. |
|
CoreExport MeshCapPoly & | operator[] (int index) |
CoreExport int | CapMesh (Mesh &mesh, MeshCapInfo &capInfo, BOOL flip, DWORD smooth, Matrix3 *tm=NULL, int mtlID=-1) |
Public Attributes |
|
int | numPolys |
The number of polygons in the shape.
|
|
MeshCapPoly * | polys |
One for each polygon in the shape. |
CoreExport MeshCapper | ( | PolyShape & | shape | ) |
CoreExport ~MeshCapper | ( | ) |
Destructor.
CoreExport MeshCapPoly& operator[] | ( | int | index | ) |
CoreExport int CapMesh | ( | Mesh & | mesh, |
MeshCapInfo & | capInfo, | ||
BOOL | flip, | ||
DWORD | smooth, | ||
Matrix3 * | tm = NULL , |
||
int | mtlID = -1 |
||
) |
int numPolys |
The number of polygons in the shape.
One for each polygon in the shape.