53 #ifndef OPENMESH_DECIMATER_MODNORMALFLIPPING_HH
54 #define OPENMESH_DECIMATER_MODNORMALFLIPPING_HH
77 template <
typename DecimaterT>
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 );
157 max_deviation_ = _f / 180.0 * M_PI;
158 min_cos_ = cos(max_deviation_);
164 void set_binary(
bool _b) {}
169 double max_deviation_, min_cos_;
177 #endif // OPENACG_MODNORMALFLIPPING_HH defined