]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13330 (When mesh generation does not success, trace where)
authoreap <eap@opencascade.com>
Wed, 18 Apr 2007 07:00:54 +0000 (07:00 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2007 07:00:54 +0000 (07:00 +0000)
   fix error message

src/StdMeshers/StdMeshers_Quadrangle_2D.cxx

index 0b0d057ed58edecc2ec47bb650894210a645514f..0d4f3615e563829f8db15e46e873459bb261f794 100644 (file)
@@ -626,7 +626,9 @@ FaceQuadStruct* StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh &         aMes
     }
     cout << endl;
 #endif
-    error(COMPERR_BAD_SHAPE, TComm("Face must have 4 side but not ") << nbSides);
+    if ( !nbSides )
+      nbSides = nbEdgesInWire.front();
+    error(COMPERR_BAD_SHAPE, TComm("Face must have 4 sides but not ") << nbSides);
     delete quad;
     quad = 0;
   }