mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding length and presence of current edge to filtering calculation to
allow long, single edges to be kept.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user