51#ifndef OPENMESH_DECIMATER_MODEDGELENGTHT_HH
52#define OPENMESH_DECIMATER_MODEDGELENGTHT_HH
82 explicit ModEdgeLengthT(MeshT& _mesh,
float _edge_length = FLT_MAX,
83 bool _is_binary =
true);
93 sqr_edge_length_ = _f * _f;
101 float collapse_priority(
const CollapseInfo& _ci)
override;
104 void set_error_tolerance_factor(
double _factor)
override;
116#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODEDGELENGTHT_C)
117#define MODEDGELENGTHT_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:149
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:59
Software related to mesh decimation.
AttribKernel::Scalar Scalar
Definition PolyMeshT.hh:110
ModBaseT(MeshT &_mesh, bool _is_binary)
Default constructor.
Definition ModBaseT.hh:207
void set_edge_length(typename Mesh::Scalar _f)
set edge_length
Definition ModEdgeLengthT.hh:91
ModEdgeLengthT(MeshT &_mesh, float _edge_length=FLT_MAX, bool _is_binary=true)
Constructor.
Definition ModEdgeLengthT_impl.hh:65
float edge_length() const
get edge_length
Definition ModEdgeLengthT.hh:86