Introduced mechanism to handle problematic dummy vertices during protection

This commit is contained in:
Mael Rouxel-Labbé 2017-11-24 13:29:39 +01:00
parent ce0c2afd40
commit c78d8651ac
2 changed files with 685 additions and 225 deletions

View File

@ -549,6 +549,12 @@ public:
return rq;
}
Weighted_point get_closest_point(const Weighted_point& wp, const Weighted_point& wq) const
{
typename Gt::Construct_point_3 cp = geom_traits().construct_point_3_object();
return Weighted_point(get_closest_point(cp(wp), cp(wq)), wq.weight());
}
// Warning: This is a periodic version that computes the smallest possible
// distances between p and q, and between p and r FOR ALL POSSIBLE OFFSETS
// before comparing these distances.