58#ifndef OPENMESH_DECIMATER_MODASPECTRATIOT_HH
59#define OPENMESH_DECIMATER_MODASPECTRATIOT_HH
64#include <OpenMesh/Core/Utils/Property.hh>
93 typedef typename Mesh::Scalar Scalar;
94 typedef typename Mesh::Point Point;
99 Base(_mesh, _is_binary), mesh_(Base::
mesh()), min_aspect_(
101 mesh_.add_property(aspect_);
106 mesh_.remove_property(aspect_);
111 return 1.f / min_aspect_;
116 min_aspect_ = 1.f / _f;
123 float collapse_priority(
const CollapseInfo& _ci);
126 void preprocess_collapse(
const CollapseInfo& _ci);
129 void set_error_tolerance_factor(
double _factor);
136 Scalar aspectRatio(
const Point& _v0,
const Point& _v1,
const Point& _v2);
149#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODASPECTRATIOT_C)
150#define OPENMESH_DECIMATER_MODASPECTRATIOT_TEMPLATES
Base class for all decimation modules.
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition ModBaseT.hh:154
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:64
Software related to mesh decimation.
Handle representing a face property.
Definition Property.hh:530
float aspect_ratio() const
get aspect ratio
Definition ModAspectRatioT.hh:110
ModAspectRatioT(MeshT &_mesh, float _min_aspect=5.0, bool _is_binary=true)
constructor
Definition ModAspectRatioT.hh:97
~ModAspectRatioT()
destructor
Definition ModAspectRatioT.hh:105
void set_aspect_ratio(float _f)
set aspect ratio
Definition ModAspectRatioT.hh:115
MeshT & mesh()
Access the mesh associated with the decimater.
Definition ModBaseT.hh:282
ModBaseT(MeshT &_mesh, bool _is_binary)
Default constructor.
Definition ModBaseT.hh:212