57 #define OPENMESH_DECIMATER_MODEDGELENGTHT_C
73 Base(_mesh, _is_binary), mesh_(Base::mesh()) {
83 return ( (sqr_length <= sqr_edge_length_) ? sqr_length : float(Base::ILLEGAL_COLLAPSE));
90 if (_factor >= 0.0 && _factor <= 1.0) {
94 float edge_length = edge_length_ * _factor / this->error_tolerance_factor_;
95 set_edge_length(edge_length);
96 this->error_tolerance_factor_ = _factor;
Mesh::Point p1
Positions of remaining vertex.
ModEdgeLengthT(MeshT &_mesh, float _edge_length=FLT_MAX, bool _is_binary=true)
Constructor.
Mesh::Point p0
Position of removed vertex.
void set_error_tolerance_factor(double _factor)
set the percentage of edge length
float collapse_priority(const CollapseInfo &_ci)
Kernel::Scalar Scalar
Scalar type.
void set_edge_length(float _f)
set edge_length