diff --git a/applications/utilities/mesh/generation/CV3DMesher/CV3D.C b/applications/utilities/mesh/generation/CV3DMesher/CV3D.C index 4e30845a92..cfaa91ae1b 100644 --- a/applications/utilities/mesh/generation/CV3DMesher/CV3D.C +++ b/applications/utilities/mesh/generation/CV3DMesher/CV3D.C @@ -76,7 +76,7 @@ void Foam::CV3D::setVertexAlignmentDirections() { if (vit->internalOrBoundaryPoint()) { - List alignmentDirections(vit->alignmentDirections()); + List& alignmentDirections(vit->alignmentDirections()); point vert(topoint(vit->point())); @@ -233,8 +233,6 @@ void Foam::CV3D::setVertexAlignmentDirections() { alignmentDirections.setSize(0); } - - vit->alignmentDirections() = alignmentDirections; } } } @@ -500,7 +498,7 @@ void Foam::CV3D::relaxPoints(const scalar relaxation) pointField displacementAccumulator(startOfSurfacePointPairs_, vector::zero); - //scalarField weightAccumulator(startOfSurfacePointPairs_,0); + scalarField weightAccumulator(startOfSurfacePointPairs_, 0); label dualVerti = 0; @@ -631,311 +629,19 @@ void Foam::CV3D::relaxPoints(const scalar relaxation) // Rotate faces that are sufficiently large and well enough aligned with the // cell alignment direction(s) - vector n2 = vector(1,1,1); + // vector n2 = vector(1,1,1); - n2 /= mag(n2); + // n2 /= mag(n2); - tensor R = rotationTensor(vector(1,0,0), n2); + // tensor R = rotationTensor(vector(1,0,0), n2); - List globalAlignmentDirs(3); + // List globalAlignmentDirs(3); - globalAlignmentDirs[0] = R & vector(1,0,0); - globalAlignmentDirs[1] = R & vector(0,1,0); - globalAlignmentDirs[2] = R & vector(0,0,1); + // globalAlignmentDirs[0] = R & vector(1,0,0); + // globalAlignmentDirs[1] = R & vector(0,1,0); + // globalAlignmentDirs[2] = R & vector(0,0,1); - Info<< "globalAlignmentDirs " << globalAlignmentDirs << endl; - - for - ( - Triangulation::Finite_edges_iterator eit = finite_edges_begin(); - eit != finite_edges_end(); - ++eit - ) - { - if - ( - eit->first->vertex(eit->second)->internalOrBoundaryPoint() - && eit->first->vertex(eit->third)->internalOrBoundaryPoint() - ) - { - Cell_circulator ccStart = incident_cells(*eit); - Cell_circulator cc = ccStart; - - DynamicList