diff --git a/applications/utilities/mesh/generation/CV3DMesher/CV3D.H b/applications/utilities/mesh/generation/CV3DMesher/CV3D.H index be62d61f5d..e02347dcc1 100644 --- a/applications/utilities/mesh/generation/CV3DMesher/CV3D.H +++ b/applications/utilities/mesh/generation/CV3DMesher/CV3D.H @@ -140,6 +140,14 @@ public: //- Square of ppDist scalar ppDist2; + //- Maximum distance between adjacent control points on a feature edge + //- before they are considered a group + scalar edgeGroupSpacing; + + //- Guard distance from a feature point within which an edge control + //- point may not be placed + scalar featurePointGuard; + tolerances ( const dictionary& controlDict, diff --git a/applications/utilities/mesh/generation/CV3DMesher/insertSurfaceNearestPointPairs.C b/applications/utilities/mesh/generation/CV3DMesher/insertSurfaceNearestPointPairs.C index d53de95f43..e73b12b965 100644 --- a/applications/utilities/mesh/generation/CV3DMesher/insertSurfaceNearestPointPairs.C +++ b/applications/utilities/mesh/generation/CV3DMesher/insertSurfaceNearestPointPairs.C @@ -196,92 +196,223 @@ void Foam::CV3D::smoothEdgePositions // Process the points along each edge (in blocks of edgeLabel) performing 3 // functions: - // 1: move points away from feature edges + // 1: move points away from feature points // 2: aggregate tight groups of points into one point // 3: adjust the spacing of remaining points on a pair by pair basis to // remove excess points - DynamicList tempEdgePoints(edgePoints.size()); + // part 1 - DynamicList