Base class for smoothing algorithms.
More...
#include <OpenMesh/Tools/Smoother/SmootherT.hh>
|
virtual void | compute_new_positions_C0 ()=0 |
|
virtual void | compute_new_positions_C1 ()=0 |
|
const Point & | orig_position (VertexHandle _vh) const |
|
const NormalType & | orig_normal (VertexHandle _vh) const |
|
const Point & | new_position (VertexHandle _vh) const |
|
void | set_new_position (VertexHandle _vh, const Point &_p) |
|
bool | is_active (VertexHandle _vh) const |
|
Component | component () const |
|
Continuity | continuity () const |
|
|
Mesh & | mesh_ |
|
bool | skip_features_ |
|
template<class Mesh>
class OpenMesh::Smoother::SmootherT< Mesh >
Base class for smoothing algorithms.
◆ Component
Enumerator |
---|
Tangential | Smooth tangential direction.
|
Normal | Smooth normal direction.
|
Tangential_and_Normal | Smooth tangential and normal direction.
|
◆ SmootherT()
constructor & destructor
- Parameters
-
_mesh | Reference a triangle or poly mesh |
◆ disable_local_error_check()
Disable error control of the smoother.
This function disables the error control of the smoother.
◆ initialize()
Initialize smoother.
- Parameters
-
_comp | Determine component to smooth |
_cont | Determine Continuity |
◆ set_absolute_local_error()
Set local error as an absolute value.
Set the maximal error tolerance of the smoother to the given value.
- Parameters
-
◆ set_relative_local_error()
Set local error relative to bounding box.
This function sets a maximal error tolerance for the smoother as a fraction of the bounding box of the mesh. First the bounding box diagonal is computed. Then the error is set as the length of the diagonal multiplied with the given factor.
- Parameters
-
_err | Factor scaling the bounding box diagonal |
◆ skip_features()
enable or disable feature handling
This function can be used to control if features on the mesh should be preserved. If enabled, the smoother will keep features and does not modify them. Features can be set via OpenMesh status flags (request status and set primitives as features). Feature flag can be set for vertices edges and faces.
- Parameters
-
_state | true : If features are selected on the mesh, they will be left unmodified
false : Features will be ignored |
The documentation for this class was generated from the following files: