Fix bad tests

This commit is contained in:
Mael Rouxel-Labbé 2021-08-23 11:49:54 +02:00
parent 6dfe06a286
commit e1d6f75579
2 changed files with 6 additions and 4 deletions

View File

@ -239,6 +239,11 @@ public:
if(pln.has_on(sph6))
continue;
// The sphere constructor will assert on degenerate positions
const Tet tet(pl0, sph6, sph5, sph4);
if(tet.is_degenerate())
continue;
sph = Sph(pl0, sph6, sph5, sph4);
check_intersection(pln, sph, C(pln, sph));
}
@ -439,7 +444,7 @@ int main(int, char**)
std::cout << " |||||||| Test EPECK ||||||||" << std::endl;
Plane_3_intersection_tester< CGAL::Epeck >(r, true /*exact predicates*/, true /*exact constructions*/).run();
// FIXME BROKEN PROJECTION, BROKEN PLN-SPHERE
// See above
// std::cout << " |||||||| Test CGAL::Homogeneous<CGAL::Epeck_ft> ||||||||" << std::endl;
// Plane_3_intersection_tester< CGAL::Homogeneous<CGAL::Epeck_ft> >(r, true /*exact predicates*/, true /*exact constructions*/).run();

View File

@ -148,9 +148,6 @@ public:
const FT r = this->r.get_int(this->m + 1, this->M);
Sph sph(c, r);
if(c != tr1 && c != tr2)
check_do_intersect(sph, Tr(c, tr1, tr2));
if(sph.oriented_side(tr0) != sph.oriented_side(tr1) ||
sph.oriented_side(tr0) != sph.oriented_side(tr2) ||
sph.oriented_side(tr2) != sph.oriented_side(tr1))