ENH: Adding length and presence of current edge to filtering calculation to

allow long, single edges to be kept.
This commit is contained in:
graham
2010-11-04 16:48:44 +00:00
parent 35416aa3c2
commit 5e693642e7

View File

@ -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