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_;
96 this->error_tolerance_factor_ = _factor;
Mesh::Point p1
Positions of remaining vertex.
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)
float edge_length() const
get edge_length
ModEdgeLengthT(MeshT &_mesh, float _edge_length=FLT_MAX, bool _is_binary=true)
Constructor.
Kernel::Scalar Scalar
Scalar type.
void set_edge_length(float _f)
set edge_length