Bugfix: deactivate corners if bad intersection

This commit is contained in:
Simon Giraudot 2016-05-17 15:37:41 +02:00
parent a6b11751b1
commit ace0238a7c
1 changed files with 3 additions and 1 deletions

View File

@ -1119,6 +1119,7 @@ private:
#ifdef CGAL_PSP3_VERBOSE #ifdef CGAL_PSP3_VERBOSE
std::cerr << "Warning: bad plane/plane intersection" << std::endl; std::cerr << "Warning: bad plane/plane intersection" << std::endl;
#endif #endif
m_corners[i].active = false;
continue; continue;
} }
else else
@ -1129,6 +1130,7 @@ private:
#ifdef CGAL_PSP3_VERBOSE #ifdef CGAL_PSP3_VERBOSE
std::cerr << "Warning: bad plane/line intersection" << std::endl; std::cerr << "Warning: bad plane/line intersection" << std::endl;
#endif #endif
m_corners[i].active = false;
continue; continue;
} }
} }
@ -1184,7 +1186,7 @@ private:
continue; continue;
int count_plane_number=3; int count_plane_number=3;
for (std::size_t kb = k + 1; kb < m_corners.size(); ++ kb) for (std::size_t kb = k + 1; kb < m_corners.size(); ++ kb)
{ {
if (!(m_corners[kb].active)) if (!(m_corners[kb].active))