Skip to content
Snippets Groups Projects
Commit 89c21747 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

bug fix when using "rough algo" to create the mean plane: the normal
was computed with reserve orientation compared to the normal case.
parent 3a0444db
No related branches found
No related tags found
No related merge requests found
// $Id: Utils.cpp,v 1.28 2005-01-01 19:35:31 geuzaine Exp $ // $Id: Utils.cpp,v 1.29 2005-12-13 23:29:15 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -160,7 +160,9 @@ void MeanPlane(List_T * points, Surface * s) ...@@ -160,7 +160,9 @@ void MeanPlane(List_T * points, Surface * s)
t2[2] = v3.Pos.Z - v1.Pos.Z; t2[2] = v3.Pos.Z - v1.Pos.Z;
norme(t1); norme(t1);
norme(t2); norme(t2);
prodve(t1, t2, res2); // prodve(t1, t2, res2);
// Warning: the rest of the code assumes res = t2 x t1, not t1 x t2 (WTF?)
prodve(t2, t1, res2);
norme(res2); norme(res2);
prodve(res, res2, c); prodve(res, res2, c);
prosca(res, res2, &cosc); prosca(res, res2, &cosc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment