prevent spheres to be detected as tori (decision based on chosen epsilon)

This commit is contained in:
Sven Oesau 2015-06-29 10:47:07 +02:00
parent 0365e18bc9
commit d9ab3eec09
1 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,13 @@ namespace CGAL {
m_minorRad = CGAL::sqrt(minorRad2);
}
// Drop if shape is probably sphere
if (m_majorRad < this->m_epsilon) {
this->m_is_valid = false;
return;
}
//validate points and normals
for (std::size_t i = 0;i<indices.size();i++) {
// check distance