rearrange some compute_sss endp tests in ring

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
Panagiotis Cheilaris 2014-05-16 14:19:24 +02:00
parent f46bf86ee7
commit c1e7fac2f5
1 changed files with 7 additions and 4 deletions

View File

@ -866,13 +866,16 @@ private:
r.is_segment() ); r.is_segment() );
v_type = SSS; v_type = SSS;
const bool is_psrc_q = is_endpoint_of(p.source_site(), q);
const bool is_psrc_r = is_endpoint_of(p.source_site(), r);
const bool is_ptrg_q = is_endpoint_of(p.target_site(), q);
const bool is_ptrg_r = is_endpoint_of(p.target_site(), r);
uz_ = RT(1); uz_ = RT(1);
if (is_endpoint_of(p.source_site(), q) and if (is_psrc_q and is_psrc_r) {
is_endpoint_of(p.source_site(), r) ) {
ux_ = p.source().x(); ux_ = p.source().x();
uy_ = p.source().y(); uy_ = p.source().y();
} else if (is_endpoint_of(p.target_site(), q) and } else if (is_ptrg_q and is_ptrg_r) {
is_endpoint_of(p.target_site(), r) ) {
ux_ = p.target().x(); ux_ = p.target().x();
uy_ = p.target().y(); uy_ = p.target().y();
} else { } else {