From 29a8eae784237ef0553a5c77260032c968aacd95 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 25 May 2011 08:04:11 +0000 Subject: [PATCH] pp --- Geo/GModelIO_Mesh.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp index ba5b18abec..5603727011 100644 --- a/Geo/GModelIO_Mesh.cpp +++ b/Geo/GModelIO_Mesh.cpp @@ -1039,12 +1039,13 @@ int GModel::readSTL(const std::string &name, double tolerance) } if(empty) points.clear(); - // binary STL (we also try to read in binary mode if the header told // us the format was ASCII but we could not read any vertices) if(binary || empty){ - if(binary) Msg::Info("Mesh is in binary format"); - else Msg::Info("Wrong ASCII header or empty file: trying binary read"); + if(binary) + Msg::Info("Mesh is in binary format"); + else + Msg::Info("Wrong ASCII header or empty file: trying binary read"); rewind(fp); while(!feof(fp)) { char header[80]; @@ -1125,7 +1126,8 @@ int GModel::readSTL(const std::string &name, double tolerance) } } } - if (nbDuplic) Msg::Warning("%d Duplicate triangle in STL file read",nbDuplic); + if (nbDuplic) + Msg::Warning("%d duplicate triangles in STL file", nbDuplic); _associateEntityWithMeshVertices(); _storeVerticesInEntities(vertices); // will delete unused vertices -- GitLab