From ca74cc372750fb15bf46159d52192b426d2f0e19 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Apr 2007 07:00:54 +0000 Subject: [PATCH] PAL13330 (When mesh generation does not success, trace where) fix error message --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index 0b0d057ed..0d4f3615e 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -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; } -- 2.39.2