mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 01:30:34 +05:00
precise error message
This commit is contained in:
parent
8321c7460e
commit
4e29225bc5
@ -542,10 +542,11 @@ bool StdMeshers_RadialQuadrangle_1D2D::Compute(SMESH_Mesh& aMesh,
|
|||||||
if ( !algo1d->ComputeCircularEdge( aMesh, CircEdge ))
|
if ( !algo1d->ComputeCircularEdge( aMesh, CircEdge ))
|
||||||
return error( algo1d->GetComputeError() );
|
return error( algo1d->GetComputeError() );
|
||||||
map< double, const SMDS_MeshNode* > theNodes;
|
map< double, const SMDS_MeshNode* > theNodes;
|
||||||
if ( !GetSortedNodesOnEdge(aMesh.GetMeshDS(),CircEdge,true,theNodes) ||
|
if ( !GetSortedNodesOnEdge(aMesh.GetMeshDS(),CircEdge,true,theNodes) )
|
||||||
theNodes.size()%2 == 0 )
|
|
||||||
return error("Circular edge is incorrectly meshed");
|
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();
|
CNodes.clear();
|
||||||
map< double, const SMDS_MeshNode* >::iterator itn = theNodes.begin();
|
map< double, const SMDS_MeshNode* >::iterator itn = theNodes.begin();
|
||||||
double fang = (*itn).first;
|
double fang = (*itn).first;
|
||||||
|
Loading…
Reference in New Issue
Block a user