 |
OpenMesh
|
Go to the documentation of this file.
58 #ifndef OPENMESH_DECIMATER_MODHAUSDORFFT_HH
59 #define OPENMESH_DECIMATER_MODHAUSDORFFT_HH
64 #include <OpenMesh/Core/Utils/Property.hh>
90 typedef typename Mesh::Scalar Scalar;
91 typedef typename Mesh::Point Point;
92 typedef typename Mesh::FaceHandle FaceHandle;
93 typedef std::vector<Point> Points;
97 Base(_mesh, true), mesh_(Base::
mesh()), tolerance_(_error_tolerance) {
98 mesh_.add_property(points_);
103 mesh_.remove_property(points_);
140 Scalar distPointTriangleSquared(
const Point& _p,
const Point& _v0,
const Point& _v1,
const Point& _v2);
143 Scalar compute_sqr_error(
FaceHandle _fh,
const Point& _p)
const;
160 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODHAUSDORFFT_C)
161 #define OPENMESH_DECIMATER_MODHAUSDORFFT_TEMPLATES
165 #endif // OPENMESH_DECIMATER_MODHAUSDORFFT_HH defined
Handle for a face entity.
Definition: Handles.hh:147
Scalar tolerance() const
get max error tolerance
Definition: ModHausdorffT.hh:107
void set_tolerance(Scalar _e)
set max error tolerance
Definition: ModHausdorffT.hh:112
Use Hausdorff distance to control decimation.
Definition: ModHausdorffT.hh:85
virtual void initialize()
reset per-face point lists
Definition: ModHausdorffT.cc:196
ModHausdorffT(MeshT &_mesh, Scalar _error_tolerance=FLT_MAX)
Constructor.
Definition: ModHausdorffT.hh:96
void set_error_tolerance_factor(double _factor)
set the percentage of tolerance
Definition: ModHausdorffT.cc:271
~ModHausdorffT()
Destructor.
Definition: ModHausdorffT.hh:102
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
virtual float collapse_priority(const CollapseInfo &_ci)
compute Hausdorff error for one-ring
Definition: ModHausdorffT.cc:211
MeshT & mesh()
Access the mesh associated with the decimater.
Definition: ModBaseT.hh:282
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:154
Base class for all decimation modules.
Definition: ModBaseT.hh:198
virtual void postprocess_collapse(const CollapseInfo &_ci)
re-distribute points
Definition: ModHausdorffT.cc:287
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.