From 777e73d74b8726ef978e202fe754df12a5bae4d3 Mon Sep 17 00:00:00 2001 From: laurence Date: Thu, 7 Feb 2013 15:07:47 +0000 Subject: [PATCH] ENH: cvMesh: Try to fix alignment --- .../cellShapeControlMesh/cellShapeControlMesh.C | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControlMesh/cellShapeControlMesh.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControlMesh/cellShapeControlMesh.C index 9c2c55e466..8a19b85fda 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControlMesh/cellShapeControlMesh.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControlMesh/cellShapeControlMesh.C @@ -816,6 +816,13 @@ void Foam::cellShapeControlMesh::write() const ) { Info<< "Bad alignment = " << vit->info(); + + triad tmpTriad(vit->alignment()); + tmpTriad.orthogonalize(); + vit->alignment() = tmpTriad; + + Info<< "New alignment = " << vit->info(); + continue; }