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

fix warn

parent e2911ed9
Branches
Tags
No related merge requests found
......@@ -121,9 +121,12 @@ class GEdge : public GEntity {
// true if start == end and no more than 2 segments
void setTooSmall(bool b) { _tooSmall = b; }
bool isMeshDegenerated() const
{ if (_tooSmall) printf("too small \n");
if (v0 == v1 && mesh_vertices.size() < 2) printf("mesh_vertices.size() =%d \n", mesh_vertices.size());
return _tooSmall || (v0 == v1 && mesh_vertices.size() < 2); }
{
if (_tooSmall) printf("too small \n");
if (v0 == v1 && mesh_vertices.size() < 2)
printf("mesh_vertices.size() = %d \n", (int)mesh_vertices.size());
return _tooSmall || (v0 == v1 && mesh_vertices.size() < 2);
}
// number of types of elements
int getNumElementTypes() const { return 1; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment