From c9291333fbed9857d8c83aafc2b8c487b7824212 Mon Sep 17 00:00:00 2001 From: ESeNonFossiIo Date: Tue, 1 Mar 2016 16:46:30 +0100 Subject: [PATCH] change orientation --- source/opencascade/utilities.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.39.5