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

*** empty log message ***

parent 530930ef
No related branches found
No related tags found
No related merge requests found
...@@ -611,8 +611,13 @@ int GModel::readSTL(const std::string &name, double tolerance) ...@@ -611,8 +611,13 @@ int GModel::readSTL(const std::string &name, double tolerance)
} }
} }
if(!points.size() || points.size() % 3){ if(!points.size()){
Msg(GERROR, "Wrong number of points in STL"); Msg(GERROR, "No facets found in STL file");
return 0;
}
if(points.size() % 3){
Msg(GERROR, "Wrong number of points in STL file");
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment