From affb31a010b8bd338aefa050a7400994ace0d296 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 17 Sep 2008 11:38:27 +0100 Subject: [PATCH] Added feature edge guard distance to placement of edge control points, two new tolerance values and a featureEdges size == 0 check --- .../mesh/generation/CV3DMesher/CV3D.H | 8 + .../insertSurfaceNearestPointPairs.C | 375 ++++++++++++------ .../mesh/generation/CV3DMesher/tolerances.C | 13 +- 3 files changed, 274 insertions(+), 122 deletions(-) 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