Skip to content
Snippets Groups Projects
Commit 257062dd authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't compute mean plane if there are no points

parent 52d2cb0b
No related branches found
No related tags found
No related merge requests found
...@@ -522,6 +522,8 @@ void GFace::computeMeanPlane(const std::vector<MVertex*> &points) ...@@ -522,6 +522,8 @@ void GFace::computeMeanPlane(const std::vector<MVertex*> &points)
void GFace::computeMeanPlane(const std::vector<SPoint3> &points) void GFace::computeMeanPlane(const std::vector<SPoint3> &points)
{ {
if(points.empty()) return;
// The concept of a mean plane computed in the sense of least // The concept of a mean plane computed in the sense of least
// squares is fine for plane surfaces(!), but not really the best // squares is fine for plane surfaces(!), but not really the best
// one for non-plane surfaces. Indeed, imagine a quarter of a circle // one for non-plane surfaces. Indeed, imagine a quarter of a circle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment