mirror of https://github.com/CGAL/cgal
Use CGAL::midpoint() instead of redoing the computation.
This commit is contained in:
parent
2c7100ff65
commit
1b79e6c94d
|
|
@ -131,8 +131,7 @@ public:
|
||||||
{
|
{
|
||||||
const Point& p1 = he->vertex()->point();
|
const Point& p1 = he->vertex()->point();
|
||||||
const Point& p2 = he->opposite()->vertex()->point();
|
const Point& p2 = he->opposite()->vertex()->point();
|
||||||
Point point = CGAL::ORIGIN + 0.5 * ((p1 - CGAL::ORIGIN) +
|
Point point = CGAL::midpoint(p1, p2);
|
||||||
(p2 - CGAL::ORIGIN));
|
|
||||||
builder.add_vertex(point);
|
builder.add_vertex(point);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue