51 #define OPENMESH_DECIMATER_MODEDGELENGTHT_C 67 Base(_mesh, _is_binary), mesh_(Base::mesh()) {
68 set_edge_length(_edge_length);
75 typename Mesh::Scalar sqr_length = (_ci.
p0 - _ci.
p1).sqrnorm();
77 return ( (sqr_length <= sqr_edge_length_) ? sqr_length : float(Base::ILLEGAL_COLLAPSE));
84 if (_factor >= 0.0 && _factor <= 1.0) {
88 typename Mesh::Scalar edge_length = edge_length_ *
static_cast<typename Mesh::Scalar
>(_factor / this->error_tolerance_factor_);
89 set_edge_length(edge_length);
90 this->error_tolerance_factor_ = _factor;
Mesh::Point p1
Positions of remaining vertex.
Use edge length to control decimation.
ModEdgeLengthT(MeshT &_mesh, float _edge_length=FLT_MAX, bool _is_binary=true)
Constructor.
Mesh::Point p0
Position of removed vertex.