Unofficially allow computing duals of non-solid entities

The ghost faces are actually proper Delaunay faces
and their dual is correctly computed with the CGAL traits
(it computes the ray using the normal of the face).

Leaving the assertions as a deterrence.
This commit is contained in:
Mael Rouxel-Labbé 2021-04-29 23:20:34 +02:00
parent 9e1a4e7037
commit 1784321787
1 changed files with 3 additions and 3 deletions

View File

@ -1051,7 +1051,7 @@ Delaunay_triangulation_on_sphere_2<Gt, Tds>::
circumcenter_on_sphere(const Face_handle f) const
{
CGAL_precondition(dimension() == 2);
CGAL_precondition(!is_ghost(f));
// CGAL_precondition(!is_ghost(f));
return circumcenter_on_sphere(point(f, 0), point(f, 1), point(f, 2));
}
@ -1062,7 +1062,7 @@ Delaunay_triangulation_on_sphere_2<Gt, Tds>::
dual_on_sphere(const Face_handle f) const
{
CGAL_precondition(dimension() == 2);
CGAL_precondition(!is_ghost(f));
// CGAL_precondition(!is_ghost(f));
return circumcenter_on_sphere(f);
}
@ -1073,7 +1073,7 @@ Delaunay_triangulation_on_sphere_2<Gt, Tds>::
dual_on_sphere(const Edge& e) const
{
CGAL_precondition(dimension() == 2);
CGAL_precondition(!is_ghost(e));
// CGAL_precondition(!is_ghost(e));
return geom_traits().construct_arc_on_sphere_2_object()(dual_on_sphere(e.first),
dual_on_sphere(e.first->neighbor(e.second)));