From 0a785e3f7d3e48419d4db755e034ccc1863f6051 Mon Sep 17 00:00:00 2001 From: Tristan Carrier Baudouin <tristan.carrier@uclouvain.be> Date: Tue, 10 May 2011 09:20:19 +0000 Subject: [PATCH] fix bug in get Angle --- Mesh/BackgroundMesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh/BackgroundMesh.cpp b/Mesh/BackgroundMesh.cpp index b16f0f125f..d0984191f8 100644 --- a/Mesh/BackgroundMesh.cpp +++ b/Mesh/BackgroundMesh.cpp @@ -683,8 +683,8 @@ double backgroundMesh::getAngle (double u, double v, double w) const cos (4*itv2->second) * uv2[0] + cos (4*itv3->second) * uv2[1] ; double sin4 = sin (4*itv1->second) * (1-uv2[0]-uv2[1]) + - cos (4*itv2->second) * uv2[0] + - cos (4*itv3->second) * uv2[1] ; + sin (4*itv2->second) * uv2[0] + + sin (4*itv3->second) * uv2[1] ; double angle = atan2(sin4,cos4)/4.0; crossField2d::normalizeAngle (angle); -- GitLab