mirror of https://github.com/CGAL/cgal
in PSSP case check fast: t endpoint of hv segment
This is to fix validity checks of inputs like (rx8m8var.cin): s -11 82 -11 4 p 58 60 p 89 1 p -11 16 s -11 16 89 1 This fixes the validity check of point t = p -11 82. Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
parent
25c8765c5e
commit
c56a0a004d
|
|
@ -853,16 +853,15 @@ private:
|
||||||
return ZERO;
|
return ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
// philaris: following might have to be changed
|
// philaris: I do the test only for axis-parallel segments
|
||||||
// philaris: I remove the following line to be on the safe side
|
if (
|
||||||
/*
|
( p_.is_segment() && is_site_h_or_v(p_) && is_endpoint_of(t, p_) ) ||
|
||||||
if ( ( p_.is_segment() && is_endpoint_of(t, p_) ) ||
|
( q_.is_segment() && is_site_h_or_v(q_) && is_endpoint_of(t, q_) ) ||
|
||||||
( q_.is_segment() && is_endpoint_of(t, q_) ) ||
|
( r_.is_segment() && is_site_h_or_v(r_) && is_endpoint_of(t, r_) ) )
|
||||||
( r_.is_segment() && is_endpoint_of(t, r_) ) ) {
|
{
|
||||||
use_result = true;
|
use_result = true;
|
||||||
return POSITIVE;
|
return POSITIVE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
return ZERO;
|
return ZERO;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue