mirror of https://github.com/CGAL/cgal
avoid an infinite loop in the case the source of the ray in on the face
This commit is contained in:
parent
a8fae00bf1
commit
dd383da307
|
|
@ -612,7 +612,11 @@ public:
|
|||
return pair.second == 0 ?
|
||||
Subdomain() :
|
||||
Subdomain(Subdomain_index(pair.second));
|
||||
default: /* COPLANAR */ continue; // loop
|
||||
default: /* COPLANAR */
|
||||
if (!triangle.has_on(p))
|
||||
continue; // loop
|
||||
else
|
||||
return Subdomain(Subdomain_index((std::max)(pair.first,pair.second))); // make a canonical choice
|
||||
} // end switch on the orientation
|
||||
} // opt
|
||||
} // end while(true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue