From: eap Date: Wed, 28 Feb 2007 10:16:34 +0000 (+0000) Subject: PAL13639 ( Create "0D Hypothesis" ) X-Git-Tag: V3_2_6a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2898e9c0df1083fa3d68970c5fcdd7a79601ccd7;p=modules%2Fsmesh.git PAL13639 ( Create "0D Hypothesis" ) limit segment length by a half of edge length --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index d6607ca35..f24f6684d 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -475,6 +475,8 @@ void StdMeshers_Regular_1D::redistributeNearVertices (SMESH_Mesh & theM const StdMeshers_SegmentLengthAroundVertex* hyp = getVertexHyp (theMesh, V ); if ( hyp ) { double vertexLength = hyp->GetLength(); + if ( vertexLength > theLength / 2.0 ) + continue; if ( isEnd1 ) { theParameters.reverse(); std::swap( f, l );