Easy3D 2.6.1
Loading...
Searching...
No Matches
SurfaceMeshTetrehedralization Class Reference

Generate quality tetrahedralization from closed shells. More...

#include <easy3d/algo/surface_mesh_tetrahedralization.h>

Public Member Functions

 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.
 
PolyMeshapply (SurfaceMesh *mesh)
 Performs tetrahedralization on the input mesh.
 

Detailed Description

Generate quality tetrahedralization from closed shells.

Member Function Documentation

◆ apply()

PolyMesh * apply ( SurfaceMesh * mesh)

Performs tetrahedralization on the input mesh.

Parameters
meshThe 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
xBoolean 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
xThe command line string to override other options.

◆ set_max_tet_shape()

void set_max_tet_shape ( double x)
inline

Sets the maximum allowable radius-edge ratio.

Parameters
xThe maximum radius-edge ratio. Default value is 2.0.

The value controls how new points can be added to improve the mesh quality. More complicated constraints can be set by using set_command_line(). See the "-q" switch in tetgen manual. http://wias-berlin.de/software/tetgen/1.5/doc/manual/manual005.html#cmd-q

See also
set_max_dihedral_angle()

◆ set_max_tet_volume()

void set_max_tet_volume ( double x)
inline

Sets the maximum volume constraint on all tetrahedra.

Parameters
xThe 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

Sets the minimum allowable dihedral angle.

Parameters
xThe minimum dihedral angle. Default value is 0.

The value controls how new points can be added to improve the mesh quality. More complicated constraints can be set by using set_command_line(). See the "-q" switch in tetgen manual. http://wias-berlin.de/software/tetgen/1.5/doc/manual/manual005.html#cmd-q

See also
set_max_tet_shape()

◆ 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
xBoolean 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: