From: ESeNonFossiIo Date: Tue, 1 Mar 2016 15:46:30 +0000 (+0100) Subject: change orientation X-Git-Tag: v8.5.0-rc1~1251^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9291333fbed9857d8c83aafc2b8c487b7824212;p=dealii.git change orientation --- diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index c170b97a3d..2d5fd5b935 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -600,6 +600,13 @@ namespace OpenCASCADE Assert(props.IsCurvatureDefined(), ExcMessage("Curvature is not well defined!")); Standard_Real Mean_Curvature = props.MeanCurvature(); Point<3> normal = Point<3>(Normal.X(),Normal.Y(),Normal.Z()); + + if (face.Orientation()==TopAbs_REVERSED) + { + normal *= -1; + Mean_Curvature *= -1; + } + return std_cxx11::tuple, Point<3>, double>(point(Value), normal, Mean_Curvature); }