mirror of https://github.com/CGAL/cgal
move bisector SS computation common points earlier
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
parent
a2b4cd7a3f
commit
2ee4a00a68
|
|
@ -369,6 +369,21 @@ private:
|
|||
// another precondition:
|
||||
// p, q may be parallel but do not have the same supporting line
|
||||
|
||||
Are_same_points_2 are_same_points;
|
||||
|
||||
bool is_psrc_qsrc =
|
||||
are_same_points(p.source_site(), q.source_site());
|
||||
bool is_psrc_qtrg =
|
||||
are_same_points(p.source_site(), q.target_site());
|
||||
bool is_mid_psrc = is_psrc_qsrc or is_psrc_qtrg;
|
||||
bool is_ptrg_qsrc =
|
||||
are_same_points(p.target_site(), q.source_site());
|
||||
bool is_ptrg_qtrg =
|
||||
are_same_points(p.target_site(), q.target_site());
|
||||
bool is_mid_ptrg = is_ptrg_qsrc or is_ptrg_qtrg;
|
||||
|
||||
bool have_common_endp = is_mid_psrc or is_mid_ptrg;
|
||||
|
||||
Are_parallel_2 are_parallel;
|
||||
|
||||
// compute supporting lines of segments
|
||||
|
|
@ -440,18 +455,6 @@ private:
|
|||
|
||||
// compute intersection point of two lines
|
||||
Point_2 mid;
|
||||
Are_same_points_2 are_same_points;
|
||||
|
||||
bool is_psrc_qsrc =
|
||||
are_same_points(p.source_site(), q.source_site());
|
||||
bool is_psrc_qtrg =
|
||||
are_same_points(p.source_site(), q.target_site());
|
||||
bool is_mid_psrc = is_psrc_qsrc or is_psrc_qtrg;
|
||||
bool is_ptrg_qsrc =
|
||||
are_same_points(p.target_site(), q.source_site());
|
||||
bool is_ptrg_qtrg =
|
||||
are_same_points(p.target_site(), q.target_site());
|
||||
bool is_mid_ptrg = is_ptrg_qsrc or is_ptrg_qtrg;
|
||||
|
||||
if (is_mid_psrc) {
|
||||
mid = p.source();
|
||||
|
|
|
|||
Loading…
Reference in New Issue