PAL13639 ( Create "0D Hypothesis" )

limit segment length by a half of edge length
This commit is contained in:
eap 2007-02-28 10:16:34 +00:00
parent ced60b03e1
commit 2898e9c0df

View File

@ -475,6 +475,8 @@ void StdMeshers_Regular_1D::redistributeNearVertices (SMESH_Mesh & theM
const StdMeshers_SegmentLengthAroundVertex* hyp = getVertexHyp (theMesh, V ); const StdMeshers_SegmentLengthAroundVertex* hyp = getVertexHyp (theMesh, V );
if ( hyp ) { if ( hyp ) {
double vertexLength = hyp->GetLength(); double vertexLength = hyp->GetLength();
if ( vertexLength > theLength / 2.0 )
continue;
if ( isEnd1 ) { if ( isEnd1 ) {
theParameters.reverse(); theParameters.reverse();
std::swap( f, l ); std::swap( f, l );