This class represents a single triangular face.
The class maintains three indices into the vertex list for the face, a 32-bit smoothing group for the face, and 32-bits of face flags. The flags also store information about the visibility of the face, the visibility of the three edges, and whether or not the face has texture vertices present. The most significant 16-bits of the face flags store the material index. All methods of this class are implemented by the system.
- See also
- Class Mesh.
|
| Face () |
| Constructor. More...
|
|
MtlID | getMatID () |
| Retrieves the zero based material ID for this face. More...
|
|
void | setMatID (MtlID id) |
| Sets the material ID for this face. More...
|
|
void | setSmGroup (DWORD i) |
| Sets the smoothing group bits for this face. More...
|
|
DWORD | getSmGroup (void) |
| Returns the smoothing group bits for this face. More...
|
|
DllExport void | setVerts (DWORD *vrt) |
| Sets the vertices of this face. More...
|
|
void | setVerts (int a, int b, int c) |
| Sets the vertices of this face. More...
|
|
DllExport void | setEdgeVis (int edge, int visFlag) |
| Sets the visibility of the specified edge. More...
|
|
DllExport void | setEdgeVisFlags (int va, int vb, int vc) |
| Sets the visibility of the all the edges. More...
|
|
int | getEdgeVis (int edge) |
| Retrieves the edge visibility for the specified edge. More...
|
|
DWORD | getVert (int index) |
| Returns the index into the mesh vertex array of the specified vertex. More...
|
|
DWORD * | getAllVerts (void) |
| Retrieves a pointer to the vertex array. More...
|
|
BOOL | Hidden () |
| Determines if the face is hidden or visible. More...
|
|
void | Hide () |
| Hides this face (makes it invisible in the viewports). More...
|
|
void | Show () |
| Shows this face (makes it visible in the viewports). More...
|
|
void | SetHide (BOOL hide) |
| Sets the hidden state of this face. More...
|
|
BOOL | InForeground () |
|
void | PushToForeground () |
|
void | PushToBackground () |
|
void | SetInForegound (BOOL foreground) |
|
BOOL | IsBackFacing () |
|
void | SetBackFacing () |
|
void | SetFrontFacing () |
|
void | SetBackFacing (BOOL backFacing) |
|
DllExport DWORD | GetOtherIndex (DWORD v0, DWORD v1) |
| Returns the first vertex in the face that isn't v0 or v1. More...
|
|
DllExport DWORD | GetEdgeIndex (DWORD v0, DWORD v1) |
| Returns the index of the edge in the face that goes from v0 to v1, or v1 to v0. More...
|
|
DllExport int | Direction (DWORD v0, DWORD v1) |
| Indicates order in which vertices v0 and v1 appear in the face. More...
|
|
DllExport DWORD | GetVertIndex (DWORD v0) |
| Returns the index of the specified vertex in this face's vertex list (0, 1 or 2). More...
|
|
DllExport void | OrderVerts (DWORD &v0, DWORD &v1) |
| This method switches v0,v1 if needed to put them in face-order. More...
|
|
|
static UtilExport void * | operator new (size_t size) |
| Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e) |
| Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate arrays of objects. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void | operator delete (void *ptr) |
| Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
| Placement new operator. More...
|
|
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
| Placement delete operator. More...
|
|