Use CGAL::midpoint() instead of redoing the computation.

This commit is contained in:
Sylvain Pion 2008-04-11 16:11:47 +00:00
parent 2c7100ff65
commit 1b79e6c94d
1 changed files with 1 additions and 2 deletions

View File

@ -131,8 +131,7 @@ public:
{
const Point& p1 = he->vertex()->point();
const Point& p2 = he->opposite()->vertex()->point();
Point point = CGAL::ORIGIN + 0.5 * ((p1 - CGAL::ORIGIN) +
(p2 - CGAL::ORIGIN));
Point point = CGAL::midpoint(p1, p2);
builder.add_vertex(point);
}
else