Generate quality tetrahedralization from closed shells.
More...
#include <easy3d/algo/surface_mesh_tetrahedralization.h>
|
| SurfaceMeshTetrehedralization () |
| Constructor.
|
|
| ~SurfaceMeshTetrehedralization ()=default |
| Destructor.
|
|
void | set_allow_steiner_points_on_boundary (bool x) |
| Sets if Steiner points are allowed on the boundary edges and faces of the input surface.
|
|
void | set_max_tet_shape (double x) |
| Sets the maximum allowable radius-edge ratio.
|
|
void | set_min_dihedral_angle (double x) |
| Sets the minimum allowable dihedral angle.
|
|
void | set_max_tet_volume (double x) |
| Sets the maximum volume constraint on all tetrahedra.
|
|
void | set_tag_regions (bool x) |
| If enabled, assigns an additional attribute (an integer number) to each tetrahedron that identifies to what facet-bounded region it belongs.
|
|
void | set_command_line (const std::string &x) |
| If specified, overrides all other options.
|
|
PolyMesh * | apply (SurfaceMesh *mesh) |
| Performs tetrahedralization on the input mesh.
|
|
Generate quality tetrahedralization from closed shells.
◆ apply()
Performs tetrahedralization on the input mesh.
- Parameters
-
mesh | The surface mesh to be tetrahedralized. |
- Returns
- A pointer to the generated polyhedral mesh.
◆ set_allow_steiner_points_on_boundary()
void set_allow_steiner_points_on_boundary |
( |
bool | x | ) |
|
|
inline |
Sets if Steiner points are allowed on the boundary edges and faces of the input surface.
- Parameters
-
x | Boolean value to allow or disallow Steiner points on boundary. Default is true. |
Disable this will preserve the input boundary edges and faces. In this case, Steiner points (if there exists any) will appear only in the interior space of the input surface.
◆ set_command_line()
void set_command_line |
( |
const std::string & | x | ) |
|
|
inline |
If specified, overrides all other options.
- Parameters
-
x | The command line string to override other options. |
◆ set_max_tet_shape()
void set_max_tet_shape |
( |
double | x | ) |
|
|
inline |
◆ set_max_tet_volume()
void set_max_tet_volume |
( |
double | x | ) |
|
|
inline |
Sets the maximum volume constraint on all tetrahedra.
- Parameters
-
x | The maximum volume constraint. Default value is -1 (no max volume constraint). |
A positive value indicates that no tetrahedra is generated whose volume is larger than this value.
- Note
- A negative value indicates no such a constraint. More complicated constraints can be set by using set_command_line(). See the "-a" switch in tetgen manual. http://wias-berlin.de/software/tetgen/1.5/doc/manual/manual005.html#cmd-a
◆ set_min_dihedral_angle()
void set_min_dihedral_angle |
( |
double | x | ) |
|
|
inline |
◆ set_tag_regions()
void set_tag_regions |
( |
bool | x | ) |
|
|
inline |
If enabled, assigns an additional attribute (an integer number) to each tetrahedron that identifies to what facet-bounded region it belongs.
- Parameters
-
x | Boolean value to enable or disable region tagging. |
In the output mesh, all tetrahedra in the same region will get a corresponding non-zero attribute.
The documentation for this class was generated from the following files: