Go to the documentation of this file.
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"
209 void set_vertex(
unsigned i,
unsigned j,
unsigned k,
int nodeindex);
220 REAL attribute,
REAL vol_constraint);
248 #endif // LIBMESH_HAVE_TETGEN
249 #endif // LIBMESH_MESH_TETGEN_WRAPPER_H
tetgenmesh tetgen_mesh
TetGen mesh structure (from the TetGen library).
TetGenWrapper()
Constructor.
The TetGenWrapper provides an interface for basic access to TetGen data structures and methods.
void set_numberofholes(int i)
Sets the number of holes in the TetGen input.
void set_facet_numberofpolygons(unsigned i, int num)
Sets the number of polygons for facet i in the TetGen input.
The libMesh namespace provides an interface to certain functionality in the library.
void set_facet_numberofholes(unsigned i, int num)
Sets the number of holes for facet i in the TetGen input.
int get_element_node(unsigned i, unsigned j)
std::unique_ptr< tetgenio > tetgen_output
TetGen output structure.
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 set_hole(unsigned i, REAL x, REAL y, REAL z)
Sets coordinates of hole i in the TetGen input.
tetgenbehavior tetgen_be
TetGen control class (from the TetGen library).
void allocate_pointlist(int numofpoints)
Allocates memory, sets number of nodes 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.
void set_node(unsigned i, REAL x, REAL y, REAL z)
Sets coordinates of point i in the TetGen input.
int get_numberoftetrahedra()
void set_numberofregions(int i)
Sets the number of regions in the TetGen input.
REAL get_element_attribute(unsigned i)
void get_output_node(unsigned i, REAL &x, REAL &y, REAL &z)
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 set_numberofpoints(int i)
Sets the number of nodes in the TetGen input.
tetgenio tetgen_data
TetGen input structure.
void allocate_regionlist(int numofregions)
Allocates memory, sets number of regions in the TetGen input.
void set_switches(const std::string &s)
Method to set TetGen commandline switches -p Tetrahedralizes a piecewise linear complex (....
int get_triface_node(unsigned i, unsigned j)
int get_numberoftrifaces()
~TetGenWrapper()
Destructor.
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_numberoffacets(int i)
Sets the number of facets in the TetGen input.
void allocate_facet_polygonlist(unsigned i, int numofpolygons)
Allocates memory, sets number of polygons for facet i in the TetGen input.
void allocate_facetlist(int numoffacets, int numofholes)
Allocates memory, sets number of facets, holes in the TetGen input.
void run_tetgen()
Starts the triangulation.