r58679 from Mesh_3-experimental-GF

Avoid a call to do_intersect: call intersection directly
This commit is contained in:
Jane Tournois 2012-07-27 14:46:10 +00:00
parent daded09083
commit 15d1ed2a98
1 changed files with 2 additions and 2 deletions

View File

@ -686,8 +686,8 @@ Construct_initial_points::operator()(OutputIterator pts,
while ( i > 0 ) while ( i > 0 )
{ {
const Ray_3 ray_shot = ray(center, vector(CGAL::ORIGIN,*random_point)); const Ray_3 ray_shot = ray(center, vector(CGAL::ORIGIN,*random_point));
if(r_domain_.do_intersect_surface_object()(ray_shot)) {
Intersection intersection = r_domain_.construct_intersection_object()(ray_shot); Intersection intersection = r_domain_.construct_intersection_object()(ray_shot);
if(CGAL::cpp0x::get<2>(intersection) != 0) {
*pts++ = std::make_pair(CGAL::cpp0x::get<0>(intersection), *pts++ = std::make_pair(CGAL::cpp0x::get<0>(intersection),
CGAL::cpp0x::get<1>(intersection)); CGAL::cpp0x::get<1>(intersection));