mirror of https://github.com/CGAL/cgal
As a consequence of previous changes check_has_on is never called with false
This commit is contained in:
parent
0124fc9e6d
commit
e451af9f50
|
|
@ -72,9 +72,8 @@ class SNC_intersection {
|
|||
}
|
||||
|
||||
static bool does_contain_internally(Halffacet_const_handle f,
|
||||
const Point_3& p,
|
||||
bool check_has_on = true) {
|
||||
if(check_has_on && !f->plane().has_on(p))
|
||||
const Point_3& p) {
|
||||
if(!f->plane().has_on(p))
|
||||
return false;
|
||||
return point_in_facet_interior( p, f);
|
||||
}
|
||||
|
|
@ -101,19 +100,15 @@ class SNC_intersection {
|
|||
|
||||
static bool does_intersect_internally(const Ray_3& ray,
|
||||
Halffacet_const_handle f,
|
||||
Point_3& p,
|
||||
bool check_has_on = true) {
|
||||
Point_3& p) {
|
||||
CGAL_NEF_TRACEN("-> Intersection facet - ray");
|
||||
Plane_3 h( f->plane());
|
||||
CGAL_NEF_TRACEN("-> facet's plane: " << h);
|
||||
CGAL_NEF_TRACEN("-> a point on the plane: " << h.point());
|
||||
CGAL_NEF_TRACEN("-> ray: " << ray);
|
||||
CGAL_assertion(!ray.is_degenerate());
|
||||
if(check_has_on) {
|
||||
if(h.has_on(ray.source()))
|
||||
return false;
|
||||
} else
|
||||
CGAL_assertion(!h.has_on(ray.source()));
|
||||
Object o = intersection( h, ray);
|
||||
if( !CGAL::assign( p, o))
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ public:
|
|||
Point_3 q;
|
||||
_CGAL_NEF_TRACEN("trying facet with on plane "<<f->plane()<<
|
||||
" with point on "<<f->plane().point());
|
||||
if( is.does_intersect_internally( ray, f, q, true) ) {
|
||||
if( is.does_intersect_internally( ray, f, q) ) {
|
||||
_CGAL_NEF_TRACEN("ray intersects facet on "<<q);
|
||||
_CGAL_NEF_TRACEN("prev. intersection? "<<hit);
|
||||
if( hit) { _CGAL_NEF_TRACEN("prev. intersection on "<<eor); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue