Add compatibility with CGAL_MESH_3_NEW_ROBUST_INTERSECTION_TRAITS

When CGAL_MESH_3_NEW_ROBUST_INTERSECTION_TRAITS is defined, the
Construct_intersection functor is always called, and Do_intersect_3 no
longer is. An assertion must be removed, because Construct_intersection can
be called on a query object that does not intersect the surface.

r66716 from Mesh_3-experimental-GF
This commit is contained in:
Jane Tournois 2012-07-24 09:06:38 +00:00
parent 1cf6743d37
commit fa2b77cd50
1 changed files with 2 additions and 0 deletions

View File

@ -235,7 +235,9 @@ public:
Intersection operator()(const Segment_3& s) const
{
#ifndef CGAL_MESH_3_NEW_ROBUST_INTERSECTION_TRAITS
CGAL_precondition(r_domain_.do_intersect_surface_object()(s));
#endif
return this->operator()(s.source(),s.target());
}