All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Tetrahedralize.h File Reference
#include "UT_API.h"
#include "UT_Array.h"
#include "UT_Vector3.h"
#include "UT_Interrupt.h"
+ Include dependency graph for UT_Tetrahedralize.h:

Go to the source code of this file.


class  UT_TetVertex
struct  UT_TetFace
class  UT_TetTetrahedron


typedef UT_Array< UT_TetVertex * > UT_TetVertexArray
typedef UT_Array
< UT_TetTetrahedron * > 


UT_API bool UTtetrahedralize (const UT_TetVertexArray &verts, UT_TetTetrahedronArray &tets)

Typedef Documentation

Definition at line 35 of file UT_Tetrahedralize.h.

Function Documentation

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.