Skip to content

Commit

Permalink
fix example and add data
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Mar 12, 2024
1 parent c90e509 commit c800d0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ int main(int argc, char* argv[])
assert(!sdg.is_infinite(fit->vertex(i)));
if (fit->vertex(i)->site().is_segment()) {
Segment_2 s = fit->vertex(i)->site().segment();
double sqdist = CGAL::squared_distance(pp, s);
sqdist = CGAL::squared_distance(pp, s);
std::cout << " segment " << s << " at distance " << sqrt(sqdist) << std::endl;
}
else {
Point_2 p = fit->vertex(i)->site().point();
double sqdist = CGAL::squared_distance(pp, p);
sqdist = CGAL::squared_distance(pp, p);
std::cout << " point " << p << " at distance " << sqrt(sqdist) << std::endl;
}
}
Expand Down

0 comments on commit c800d0e

Please sign in to comment.