X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Pattern.cxx;h=af13d4548c7fed9612a140ae4ccaa5081c251e63;hp=9dc255a252ac8657cf96b851189860b7b3083cb5;hb=17c25b0d25c07fab341f4dd4bb56cf17c831d070;hpb=9c53b386de848f2e2666762f1b59fb02e8a7c0aa diff --git a/src/SMESH/SMESH_Pattern.cxx b/src/SMESH/SMESH_Pattern.cxx index 9dc255a25..af13d4548 100644 --- a/src/SMESH/SMESH_Pattern.cxx +++ b/src/SMESH/SMESH_Pattern.cxx @@ -4018,11 +4018,12 @@ bool SMESH_Pattern::MakeMesh(SMESH_Mesh* theMesh, map< double, const SMDS_MeshNode* >::iterator u2n = ++paramsOfNodes.begin(); map< double, const SMDS_MeshNode* >::iterator u2nEnd = --paramsOfNodes.end(); TPoint* p; + const double tolFact = ( paramsOfNodes.size() == points.size() ) ? 0.3 : 0.05; while ( u2n != u2nEnd && pItF != points.end() ) { const double u = u2n->first; const SMDS_MeshNode* n = u2n->second; - const double tol = ( (++u2n)->first - u ) / 20; + const double tol = ( (++u2n)->first - u ) * tolFact; do { p = ( isForward ? *pItF : *pItR );