 |
OpenMesh
|
Go to the documentation of this file.
52 #ifndef OPENMESH_DECIMATER_MODHAUSDORFFT_HH
53 #define OPENMESH_DECIMATER_MODHAUSDORFFT_HH
58 #include <OpenMesh/Core/Utils/Property.hh>
85 typedef typename Mesh::Point Point;
86 typedef typename Mesh::FaceHandle FaceHandle;
87 typedef std::vector<Point> Points;
91 Base(_mesh, true), mesh_(Base::
mesh()), tolerance_(_error_tolerance) {
92 mesh_.add_property(points_);
97 mesh_.remove_property(points_);
134 Scalar distPointTriangleSquared(
const Point& _p,
const Point& _v0,
const Point& _v1,
const Point& _v2);
137 Scalar compute_sqr_error(
FaceHandle _fh,
const Point& _p)
const;
154 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODHAUSDORFFT_C)
155 #define OPENMESH_DECIMATER_MODHAUSDORFFT_TEMPLATES
159 #endif // OPENMESH_DECIMATER_MODHAUSDORFFT_HH defined
Definition: PolyMesh_ArrayKernelT.hh:94
Use Hausdorff distance to control decimation.
Definition: ModHausdorffT.hh:79
Scalar tolerance() const
get max error tolerance
Definition: ModHausdorffT.hh:101
void set_error_tolerance_factor(double _factor)
set the percentage of tolerance
Definition: ModHausdorffT_impl.hh:265
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:149
virtual void initialize()
reset per-face point lists
Definition: ModHausdorffT_impl.hh:190
Handle for a face entity.
Definition: Handles.hh:141
virtual void postprocess_collapse(const CollapseInfo &_ci)
re-distribute points
Definition: ModHausdorffT_impl.hh:281
~ModHausdorffT()
Destructor.
Definition: ModHausdorffT.hh:96
virtual float collapse_priority(const CollapseInfo &_ci)
compute Hausdorff error for one-ring
Definition: ModHausdorffT_impl.hh:205
ModHausdorffT(MeshT &_mesh, Scalar _error_tolerance=FLT_MAX)
Constructor.
Definition: ModHausdorffT.hh:90
MeshT & mesh()
Access the mesh associated with the decimater.
Definition: ModBaseT.hh:277
This file contains all code required to use Eigen3 vectors as Mesh vectors.
Definition: MeshItems.hh:59
void set_tolerance(Scalar _e)
set max error tolerance
Definition: ModHausdorffT.hh:106
Base class for all decimation modules.
Definition: ModBaseT.hh:192
Kernel::Scalar Scalar
Scalar type.
Definition: PolyMeshT.hh:110
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.