Easy3D 2.5.3
SurfaceMeshTetrehedralization Class Reference

Generate quality tetrahedralization from closed shells. More...

#include <easy3d/algo/surface_mesh_tetrahedralization.h>

Public Member Functions

void set_allow_steiner_points_on_boundary (bool x)
 
void set_max_tet_shape (double x)
 
void set_min_dihedral_angle (double x)
 
void set_max_tet_volume (double x)
 
void set_tag_regions (bool x)
 
void set_command_line (const std::string &x)
 
PolyMeshapply (SurfaceMesh *mesh)
 

Detailed Description

Generate quality tetrahedralization from closed shells.

Member Function Documentation

◆ apply()

PolyMesh * apply ( SurfaceMesh mesh)

Performs tetrahedralization on the input 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. 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.

◆ set_max_tet_shape()

void set_max_tet_shape ( double  x)
inline

Sets the maximum allowable 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. 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. 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. 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: