Commit 3203284e authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot
Browse files

Merge topic 'delaunay-fix-export'

4e404801

 Delaunay: fix export (I forgot that points cannot be copied)
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !535
parents 16e4de8b 4e404801
......@@ -61,11 +61,17 @@ std::vector<Delaunay::Shape::Point> ExportDelaunayMesh::operator()(
// the edge use's orientation.
if (eu.orientation() == 1)
{
points.insert(points.end(), pointsForEdge.begin(), pointsForEdge.end());
for (auto p = pointsForEdge.begin(); p != pointsForEdge.end(); ++p)
{
points.push_back(Delaunay::Shape::Point(p->x,p->y));
}
}
else
{
points.insert(points.end(), pointsForEdge.rbegin(), pointsForEdge.rend());
for (auto p = pointsForEdge.rbegin(); p != pointsForEdge.rend(); ++p)
{
points.push_back(Delaunay::Shape::Point(p->x,p->y));
}
}
pointsForEdge.clear();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment