Commit 5e693642 authored by graham's avatar graham
Browse files

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

allow long, single edges to be kept.
parent 35416aa3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment