From cc975fa61d8a8b1a20c6118a2e1d7a52f81d5ad3 Mon Sep 17 00:00:00 2001 From: laurence <laurence> Date: Tue, 7 Feb 2012 12:16:45 +0000 Subject: [PATCH] STYLE: cvMesh: fix line lengths --- .../conformalVoronoiMeshCalcDualMesh.C | 12 ++++++------ .../conformalVoronoiMeshConformToSurface.C | 3 ++- ...conformalVoronoiMeshFeaturePointSpecialisations.C | 7 ++++--- .../conformalVoronoiMeshFeaturePoints.C | 7 +++++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C index d2c23eef51c..025d530db66 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C @@ -102,14 +102,14 @@ void Foam::conformalVoronoiMesh::calcDualMesh // ) // { // // Allow filtering if any vertices are far points. Otherwise faces -// // with boundary points attached to a cell with a far point will not -// // be filtered. +// // with boundary points attached to a cell with a far point will +// // not be filtered. // if // ( -// ( !(*cit)->vertex(0)->real() && !(*cit)->vertex(0)->farPoint() ) -// || ( !(*cit)->vertex(1)->real() && !(*cit)->vertex(1)->farPoint() ) -// || ( !(*cit)->vertex(2)->real() && !(*cit)->vertex(2)->farPoint() ) -// || ( !(*cit)->vertex(3)->real() && !(*cit)->vertex(3)->farPoint() ) +// (!(*cit)->vertex(0)->real() && !(*cit)->vertex(0)->farPoint()) +// || (!(*cit)->vertex(1)->real() && !(*cit)->vertex(1)->farPoint()) +// || (!(*cit)->vertex(2)->real() && !(*cit)->vertex(2)->farPoint()) +// || (!(*cit)->vertex(3)->real() && !(*cit)->vertex(3)->farPoint()) // ) // { // hasProcPt = true; diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshConformToSurface.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshConformToSurface.C index 925a19c099c..cf77b5e14a5 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshConformToSurface.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshConformToSurface.C @@ -2048,7 +2048,8 @@ bool Foam::conformalVoronoiMesh::nearFeatureEdgeLocation //// { //// if (toRemove[pI] == false) //// { -//// newExistingEdgeLocations[count++] = existingEdgeLocations[pI]; +//// newExistingEdgeLocations[count++] = +//// existingEdgeLocations[pI]; //// } //// } //// diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePointSpecialisations.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePointSpecialisations.C index 644d82c9613..4fee4a36e5c 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePointSpecialisations.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePointSpecialisations.C @@ -187,7 +187,8 @@ bool Foam::conformalVoronoiMesh::createSpecialisedFeaturePoint ); // Todo,needed later but want to get rid of this. - const Foam::point concaveEdgeLocalFeatPt = featPt + ppDist*concaveEdgeDir; + const Foam::point concaveEdgeLocalFeatPt = + featPt + ppDist*concaveEdgeDir; // Finding the nearest point on the intersecting line to the edge // point. Floating point errors often occur using planePlaneIntersect @@ -377,9 +378,9 @@ bool Foam::conformalVoronoiMesh::createSpecialisedFeaturePoint // Add additional mitering points //scalar angleSign = 1.0; - Info<<convexEdgePlaneCNormal << " " <<convexEdgePlaneDNormal << endl; - vector convexEdgesPlaneNormal = 0.5*(convexEdgePlaneCNormal + convexEdgePlaneDNormal); + vector convexEdgesPlaneNormal = + 0.5*(convexEdgePlaneCNormal + convexEdgePlaneDNormal); plane planeM(featPt, convexEdgesPlaneNormal); // if diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePoints.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePoints.C index cb2a0c9340c..a9b2c6c1cde 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePoints.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePoints.C @@ -773,8 +773,11 @@ void Foam::conformalVoronoiMesh::createMixedFeaturePoints // // const scalar searchRadiusSqr = 5.0*targetCellSize(featPt); // -// labelList indices = -// surfacePtLocationTreePtr_().findSphere(featPt, searchRadiusSqr); +// labelList indices = surfacePtLocationTreePtr_().findSphere +// ( +// featPt, +// searchRadiusSqr +// ); // // pointField nearestSurfacePoints(indices.size()); // -- GitLab