Detailed Description
- See also:
- Class MeshCapInfo, Class PolyShape, Class MeshCapPoly.
- Description:
- 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.
- Data Members:
- int numPolys;
The number of polygons in the shape.
MeshCapPoly
*polys;
One for each polygon in the shape.
#include <captypes.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
CoreExport int CapMesh |
( |
Mesh
& |
mesh, |
|
|
MeshCapInfo & |
capInfo, |
|
|
BOOL |
flip, |
|
|
DWORD |
smooth, |
|
|
Matrix3 * |
tm = NULL , |
|
|
int |
mtlID = -1 |
|
) |
|
|
- Parameters:
-
Mesh &mesh
The
Mesh to modify.
MeshCapInfo
&capInfo
The MeshCapInfo
describing the properties of the cap.
BOOL flip
A switch to indicate if the cap should be oriented normally or
flipped. The MeshCapInfo is used for both the
front and back side of a cap. Either the front or the back will
have to be flipped. This switch is used to indicate if a particular
one is flipped.
DWORD smooth
The smoothing group for all the faces in the cap.
Matrix3
*tm=NULL
The orientation matrix. A grid cap generates new vertices inside
the shape that make up the grid. In the case of a SurfRev for
example, the end cap might be rotated, or scaled in some manner. A
matrix is required so the capper knows how to orient the vertices
into the correct location. This matrix is ignored for non-grid
capping.
int mtlID=-1
This parameter is available in release 2.0 and later only.
Specifies the material ID of the faces that make up the cap. The
default for this value is -1, which causes the capper to use
material ID 0 for non-flipped caps and ID 1 for flipped caps. Note
that these ID values are zero-based, while the UI display is
1-based.
- Returns:
- Nonzero if the mesh was modified; otherwise zero.
Member Data Documentation
MeshCapper MeshCapper MeshCapper
MeshCapper MeshCapper MeshCapper MeshCapper MeshCapper MeshCapper
MeshCapper
MeshCapper MeshCapper MeshCapper
MeshCapper MeshCapper MeshCapper MeshCapper MeshCapper MeshCapper
MeshCapper