18 #ifndef LIBMESH_MESH_TETGEN_WRAPPER_H 19 #define LIBMESH_MESH_TETGEN_WRAPPER_H 21 #include "libmesh/libmesh_config.h" 22 #ifdef LIBMESH_HAVE_TETGEN 26 #include "libmesh/ignore_warnings.h" 28 #include "libmesh/restore_warnings.h" 151 void set_node(
unsigned i, REAL x, REAL y, REAL z);
176 void set_hole(
unsigned i, REAL x, REAL y, REAL z);
209 void set_vertex(
unsigned i,
unsigned j,
unsigned k,
int nodeindex);
219 void set_region(
unsigned i, REAL x, REAL y, REAL z,
220 REAL attribute, REAL vol_constraint);
248 #endif // LIBMESH_HAVE_TETGEN 249 #endif // LIBMESH_MESH_TETGEN_WRAPPER_H void set_polygon_numberofvertices(unsigned i, unsigned j, int num)
Sets the number of vertices for polygon j, facet i in the TetGen input.
void set_numberofregions(int i)
Sets the number of regions in the TetGen input.
void set_numberofpoints(int i)
Sets the number of nodes in the TetGen input.
REAL get_element_attribute(unsigned i)
void set_facet_numberofpolygons(unsigned i, int num)
Sets the number of polygons for facet i in the TetGen input.
int get_element_node(unsigned i, unsigned j)
void get_output_node(unsigned i, REAL &x, REAL &y, REAL &z)
int get_triface_node(unsigned i, unsigned j)
void set_facet_numberofholes(unsigned i, int num)
Sets the number of holes for facet i in the TetGen input.
void set_numberoffacets(int i)
Sets the number of facets in the TetGen input.
void set_vertex(unsigned i, unsigned j, unsigned k, int nodeindex)
Sets index of ith facet, jth polygon, kth vertex in the TetGen input.
The libMesh namespace provides an interface to certain functionality in the library.
void allocate_polygon_vertexlist(unsigned i, unsigned j, int numofvertices)
Allocates memory, sets number of vertices for polygon j, facet i in the TetGen input.
void allocate_pointlist(int numofpoints)
Allocates memory, sets number of nodes in the TetGen input.
int get_numberoftetrahedra()
tetgenmesh tetgen_mesh
TetGen mesh structure (from the TetGen library).
The TetGenWrapper provides an interface for basic access to TetGen data structures and methods...
void set_node(unsigned i, REAL x, REAL y, REAL z)
Sets coordinates of point i in the TetGen input.
tetgenio tetgen_data
TetGen input structure.
void run_tetgen()
Starts the triangulation.
std::unique_ptr< tetgenio > tetgen_output
TetGen output structure.
~TetGenWrapper()
Destructor.
void allocate_facet_polygonlist(unsigned i, int numofpolygons)
Allocates memory, sets number of polygons for facet i in the TetGen input.
void set_switches(std::string_view s)
Method to set TetGen commandline switches -p Tetrahedralizes a piecewise linear complex (...
void set_hole(unsigned i, REAL x, REAL y, REAL z)
Sets coordinates of hole i in the TetGen input.
void set_numberofholes(int i)
Sets the number of holes in the TetGen input.
void allocate_regionlist(int numofregions)
Allocates memory, sets number of regions in the TetGen input.
TetGenWrapper()
Constructor.
int get_numberoftrifaces()
tetgenbehavior tetgen_be
TetGen control class (from the TetGen library).
void set_region(unsigned i, REAL x, REAL y, REAL z, REAL attribute, REAL vol_constraint)
Sets coordinates, attribute, and volume constraint for region i in the TetGen input.
void allocate_facetlist(int numoffacets, int numofholes)
Allocates memory, sets number of facets, holes in the TetGen input.