PAL13330 (When mesh generation does not success, trace where)

fix error message
This commit is contained in:
eap 2007-04-18 07:00:54 +00:00
parent 7ed7e0e32a
commit ca74cc3727

View 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;
}