From 0c17f7fb6561cc6e8b041a90df486aaddc154c5a Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 12 Oct 2011 20:53:13 +0000 Subject: [PATCH] strange fix for msvc 2010 --- libsrc/gprim/geomfuncs.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libsrc/gprim/geomfuncs.hpp b/libsrc/gprim/geomfuncs.hpp index 36c96d32..66cbca81 100644 --- a/libsrc/gprim/geomfuncs.hpp +++ b/libsrc/gprim/geomfuncs.hpp @@ -74,7 +74,15 @@ namespace netgen - inline Vec<3> Cross (const Vec<3> & v1, const Vec<3> & v2) + + /* + new wrong code problem with MSVC2010: + using Cross ( & , & ) computes wrong cross-product, problem arises in + Surface::DefineTangentialPlane, e.g. with example boxcyl.geo + */ + // inline Vec<3> Cross (const Vec<3> & v1, const Vec<3> & v2) + + inline Vec<3> Cross (Vec<3> v1, Vec<3> v2) { return Vec<3> ( v1(1) * v2(2) - v1(2) * v2(1),