53 #ifndef OPENMESH_DECIMATER_MODNORMALFLIPPING_HH
54 #define OPENMESH_DECIMATER_MODNORMALFLIPPING_HH
77 template <
typename MeshT>
116 Base::mesh().set_point(_ci.
v0, _ci.
p1);
119 typename Mesh::ConstVertexFaceIter vf_it(Base::mesh(), _ci.
v0);
120 typename Mesh::FaceHandle fh;
121 typename Mesh::Scalar c(1.0);
123 for (; vf_it; ++vf_it)
126 if (fh != _ci.
fl && fh != _ci.
fr)
129 typename Mesh::Normal n2 = Base::mesh().calc_face_normal(fh);
139 Base::mesh().set_point(_ci.
v0, _ci.
p0);
141 return float( (c < min_cos_) ? Base::ILLEGAL_COLLAPSE : Base::LEGAL_COLLAPSE );
146 if (_factor >= 0.0 && _factor <= 1.0) {
150 float max_normal_deviation = (max_deviation_ * 180.0/M_PI) * _factor / this->error_tolerance_factor_;
152 this->error_tolerance_factor_ = _factor;
168 max_deviation_ = _f / 180.0 * M_PI;
169 min_cos_ = cos(max_deviation_);
175 void set_binary(
bool _b) {}
180 double max_deviation_, min_cos_;
188 #endif // OPENACG_MODNORMALFLIPPING_HH defined