From 2898e9c0df1083fa3d68970c5fcdd7a79601ccd7 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 28 Feb 2007 10:16:34 +0000 Subject: [PATCH] PAL13639 ( Create "0D Hypothesis" ) limit segment length by a half of edge length --- src/StdMeshers/StdMeshers_Regular_1D.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 );