 |
OpenMesh
|
Go to the documentation of this file.
59 #ifndef OPENMESH_SMOOTHER_SMOOTHERT_HH
60 #define OPENMESH_SMOOTHER_SMOOTHERT_HH
65 #include <OpenMesh/Core/System/config.hh>
66 #include <OpenMesh/Core/Utils/Property.hh>
67 #include <OpenMesh/Core/Utils/Noncopyable.hh>
85 typedef typename Mesh::Scalar Scalar;
86 typedef typename Mesh::Point Point;
128 virtual void smooth(
unsigned int _n);
189 void set_active_vertices();
192 void compute_new_positions();
193 void project_to_tangent_plane();
194 void local_error_check();
202 virtual void compute_new_positions_C0() = 0;
203 virtual void compute_new_positions_C1() = 0;
212 {
return mesh_.property(original_positions_, _vh); }
215 {
return mesh_.property(original_normals_, _vh); }
217 const Point& new_position(VertexHandle _vh)
const
218 {
return mesh_.property(new_positions_, _vh); }
220 void set_new_position(VertexHandle _vh,
const Point& _p)
221 { mesh_.property(new_positions_, _vh) = _p; }
223 bool is_active(VertexHandle _vh)
const
224 {
return mesh_.property(is_active_, _vh); }
226 Component component()
const {
return component_; }
227 Continuity continuity()
const {
return continuity_; }
238 Scalar normal_deviation_;
240 Continuity continuity_;
253 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SMOOTHERT_C)
254 #define OPENMESH_SMOOTHERT_TEMPLATES
258 #endif // OPENMESH_SMOOTHER_SMOOTHERT_HH defined
SmootherT(Mesh &_mesh)
constructor & destructor
Definition: SmootherT.cc:78
Handle for a vertex entity.
Definition: Handles.hh:126
Base class for smoothing algorithms.
Definition: SmootherT.hh:82
void set_absolute_local_error(Scalar _err)
Set local error as an absolute value.
Definition: SmootherT.cc:283
Definition: PolyMesh_ArrayKernelT.hh:100
@ Tangential_and_Normal
Smooth tangential and normal direction.
Definition: SmootherT.hh:95
@ Tangential
Smooth tangential direction.
Definition: SmootherT.hh:93
Component
Definition: SmootherT.hh:92
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:139
void disable_local_error_check()
Disable error control of the smoother.
Definition: SmootherT.cc:295
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
void set_relative_local_error(Scalar _err)
Set local error relative to bounding box.
Definition: SmootherT.cc:253
virtual void smooth(unsigned int _n)
Do _n smoothing iterations.
Definition: SmootherT.cc:307
@ Normal
Smooth normal direction.
Definition: SmootherT.hh:94
void initialize(Component _comp, Continuity _cont)
Initialize smoother.
Definition: SmootherT.cc:127
This class demonstrates the non copyable idiom.
Definition: Noncopyable.hh:77
void skip_features(bool _state)
enable or disable feature handling
Definition: SmootherT.hh:172
Kernel::Normal Normal
Normal type.
Definition: PolyMeshT.hh:117
Kernel::EdgeHandle EdgeHandle
Scalar type.
Definition: PolyMeshT.hh:141
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.