mirror of https://github.com/CGAL/cgal
reverse signs returned by Power_side_of_bounded_power_sphere_3
the previously used In_smallest_orthogonal_sphere predicate was returning the opposite of what Power_side_of_bounded_power_sphere_3 returns
This commit is contained in:
parent
a8fc1db9f4
commit
d23aa50cb0
|
|
@ -144,18 +144,18 @@ private:
|
|||
|
||||
// Test whether the anchor of edge (wp1,wp2) and wp2 are equal
|
||||
Sign test_anchor(Weighted_point &wp1, Weighted_point &wp2) {
|
||||
return
|
||||
enum_cast<Sign>(reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2));
|
||||
return enum_cast<Sign>(
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2));
|
||||
}
|
||||
Sign test_anchor(Weighted_point const& wp1, Weighted_point const& wp2,
|
||||
Weighted_point const& wp3) {
|
||||
return
|
||||
enum_cast<Sign>(reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3));
|
||||
return enum_cast<Sign>(
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3));
|
||||
}
|
||||
Sign test_anchor(Weighted_point const& wp1, Weighted_point const& wp2,
|
||||
Weighted_point const& wp3, Weighted_point const& wp4) {
|
||||
return
|
||||
enum_cast<Sign>(reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3, wp4));
|
||||
return enum_cast<Sign>(
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3, wp4));
|
||||
}
|
||||
// Test whether the anchor of e and anchor of e.first->vertex(i) are equal
|
||||
Sign test_anchor(Edge e, int i) {
|
||||
|
|
@ -194,9 +194,8 @@ private:
|
|||
default:
|
||||
CGAL_error();
|
||||
}
|
||||
|
||||
return
|
||||
enum_cast<Sign>(reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3));
|
||||
return enum_cast<Sign>(
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -204,7 +203,8 @@ private:
|
|||
Sign test_anchor(Cell_handle ch, int i) {
|
||||
CGAL_assertion(!reg.is_infinite(ch));
|
||||
|
||||
return enum_cast<Sign>(reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(
|
||||
return enum_cast<Sign>(
|
||||
- reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(
|
||||
ch->vertex((i+1)&3)->point(),
|
||||
ch->vertex((i+2)&3)->point(),
|
||||
ch->vertex((i+3)&3)->point(),
|
||||
|
|
@ -216,7 +216,7 @@ private:
|
|||
|
||||
int index = ch2->index(ch);
|
||||
return enum_cast<Sign>(
|
||||
reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(
|
||||
ch->vertex(0)->point(),
|
||||
ch->vertex(1)->point(),
|
||||
ch->vertex(2)->point(),
|
||||
|
|
@ -228,7 +228,7 @@ private:
|
|||
Weighted_point const& wp3, Weighted_point const& wp4,
|
||||
Weighted_point const& wp5) {
|
||||
return enum_cast<Sign>(
|
||||
reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3, wp4, wp5));
|
||||
-reg.geom_traits().power_side_of_bounded_power_sphere_3_object()(wp1, wp2, wp3, wp4, wp5));
|
||||
}
|
||||
|
||||
const Regular_triangulation ®
|
||||
|
|
|
|||
Loading…
Reference in New Issue