From: eap Date: Fri, 12 Feb 2010 07:41:39 +0000 (+0000) Subject: precise error message X-Git-Tag: V5_1_4a1~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e29225bc5fe093a8a05949e2a59190a5a8529da;p=modules%2Fsmesh.git precise error message --- diff --git a/src/StdMeshers/StdMeshers_RadialQuadrangle_1D2D.cxx b/src/StdMeshers/StdMeshers_RadialQuadrangle_1D2D.cxx index 2b8805003..a94600a30 100644 --- a/src/StdMeshers/StdMeshers_RadialQuadrangle_1D2D.cxx +++ b/src/StdMeshers/StdMeshers_RadialQuadrangle_1D2D.cxx @@ -542,10 +542,11 @@ bool StdMeshers_RadialQuadrangle_1D2D::Compute(SMESH_Mesh& aMesh, if ( !algo1d->ComputeCircularEdge( aMesh, CircEdge )) return error( algo1d->GetComputeError() ); map< double, const SMDS_MeshNode* > theNodes; - if ( !GetSortedNodesOnEdge(aMesh.GetMeshDS(),CircEdge,true,theNodes) || - theNodes.size()%2 == 0 ) + if ( !GetSortedNodesOnEdge(aMesh.GetMeshDS(),CircEdge,true,theNodes) ) return error("Circular edge is incorrectly meshed"); - + if (theNodes.size()%2 == 0 ) + return error("Circular edge is incorrectly meshed, number of segments must be even"); + CNodes.clear(); map< double, const SMDS_MeshNode* >::iterator itn = theNodes.begin(); double fang = (*itn).first;