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:
Panagiotis Cheilaris 2013-08-18 17:39:26 +03:00
parent 25c8765c5e
commit c56a0a004d
1 changed files with 6 additions and 7 deletions

View File

@ -853,16 +853,15 @@ private:
return ZERO;
}
// philaris: following might have to be changed
// philaris: I remove the following line to be on the safe side
/*
if ( ( p_.is_segment() && is_endpoint_of(t, p_) ) ||
( q_.is_segment() && is_endpoint_of(t, q_) ) ||
( r_.is_segment() && is_endpoint_of(t, r_) ) ) {
// philaris: I do the test only for axis-parallel segments
if (
( p_.is_segment() && is_site_h_or_v(p_) && is_endpoint_of(t, p_) ) ||
( q_.is_segment() && is_site_h_or_v(q_) && is_endpoint_of(t, q_) ) ||
( r_.is_segment() && is_site_h_or_v(r_) && is_endpoint_of(t, r_) ) )
{
use_result = true;
return POSITIVE;
}
*/
return ZERO;
}