diff --git a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C index 3cbe1157a9..ea326b0aca 100644 --- a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C +++ b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C @@ -620,13 +620,23 @@ void Foam::surfaceFeatures::trimFeatures if ( - (leftPath.len_ + rightPath.len_ < minLen) - || (leftPath.n_ + rightPath.n_ < minElems) + ( + leftPath.len_ + + rightPath.len_ + + startEdge.mag(surf_.localPoints()) + < minLen + ) + || (leftPath.n_ + rightPath.n_ + 1 < minElems) ) { // Rewalk same route (recognizable by featLines == featI) // to reset featLines. + Info<< "In too small case:" << startEdgeI + << nl << leftPath.len_ << " " << rightPath.len_ + << nl << leftPath.n_ << " " << rightPath.n_ + << endl; + featLines[startEdgeI] = -2; walkSegment