52 #ifndef OPENMESH_DECIMATER_MODASPECTRATIOT_HH 53 #define OPENMESH_DECIMATER_MODASPECTRATIOT_HH 58 #include <OpenMesh/Core/Utils/Property.hh> 93 Base(_mesh, _is_binary), mesh_(Base::
mesh()), min_aspect_(
95 mesh_.add_property(aspect_);
100 mesh_.remove_property(aspect_);
105 return 1.f / min_aspect_;
110 min_aspect_ = 1.f / _f;
130 Scalar
aspectRatio(
const Point& _v0,
const Point& _v1,
const Point& _v2);
143 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODASPECTRATIOT_C) 144 #define OPENMESH_DECIMATER_MODASPECTRATIOT_TEMPLATES 148 #endif // OPENMESH_DECIMATER_MODASPECTRATIOT_HH defined
~ModAspectRatioT()
destructor
void set_aspect_ratio(float _f)
set aspect ratio
Kernel::Point Point
Coordinate type.
void preprocess_collapse(const CollapseInfo &_ci) override
update aspect ratio of one-ring
void set_error_tolerance_factor(double _factor) override
set percentage of aspect ratio
Scalar aspectRatio(const Point &_v0, const Point &_v1, const Point &_v2)
return aspect ratio (length/height) of triangle
float aspect_ratio() const
get aspect ratio
ModAspectRatioT(MeshT &_mesh, float _min_aspect=5.0, bool _is_binary=true)
constructor
void initialize() override
precompute face aspect ratio
float collapse_priority(const CollapseInfo &_ci) override
Returns the collapse priority.
Kernel::Scalar Scalar
Scalar type.
#define DECIMATING_MODULE(Classname, MeshT, Name)
MeshT & mesh()
Access the mesh associated with the decimater.
Use aspect ratio to control decimation.