Salome HOME
PAL13639 ( Create "0D Hypothesis" )
authoreap <eap@opencascade.com>
Wed, 28 Feb 2007 10:16:34 +0000 (10:16 +0000)
committereap <eap@opencascade.com>
Wed, 28 Feb 2007 10:16:34 +0000 (10:16 +0000)
     limit segment length by a half of edge length

src/StdMeshers/StdMeshers_Regular_1D.cxx

index d6607ca351a8521ca8fb69cc8607de64d1936fef..f24f6684dc001d8f02ad91e48b2917bd44a3e583 100644 (file)
@@ -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 );