HDK
|
Go to the source code of this file.
Classes | |
class | UT_TetVertex |
struct | UT_TetFace |
class | UT_TetTetrahedron |
Typedefs | |
typedef UT_Array< UT_TetVertex * > | UT_TetVertexArray |
typedef UT_Array < UT_TetTetrahedron * > | UT_TetTetrahedronArray |
Functions | |
UT_API bool | UTtetrahedralize (const UT_TetVertexArray &verts, UT_TetTetrahedronArray &tets) |
typedef UT_Array<UT_TetTetrahedron *> UT_TetTetrahedronArray |
Definition at line 38 of file UT_Tetrahedralize.h.
typedef UT_Array<UT_TetVertex *> UT_TetVertexArray |
Definition at line 35 of file UT_Tetrahedralize.h.
UT_API bool UTtetrahedralize | ( | const UT_TetVertexArray & | verts, |
UT_TetTetrahedronArray & | tets | ||
) |
The tetrahedralization function. The input is an array of pointers to UT_TetVertex objects; the output is a list of pointers to UT_TetTetrahedron objects. The caller is responsible for deleting the UT_TetTetrahedron objects (and probably the UT_TetVertex objects, depending on how they were created). The boss parameter allows the caller to provide a UT_Interrupt object to poll for interrupts and update with progress. The interruptInterval is the number of points processed between calls to UT_Interrupt::opinterrupt.
This function returns false if the tetrahedralization fails, meaning the tetrahedralization is in an invalid state, although that really, really should not happen. Note that duplicate points are degenerate and will not be inserted into the tetrahedralization, but this does not indicate a failure condition.