]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change orientation
authorESeNonFossiIo <esenonfossiio@gmail.com>
Tue, 1 Mar 2016 15:46:30 +0000 (16:46 +0100)
committerESeNonFossiIo <esenonfossiio@gmail.com>
Thu, 3 Mar 2016 19:24:47 +0000 (20:24 +0100)
source/opencascade/utilities.cc

index c170b97a3ddba8430284890ad93a05f0e8320944..2d5fd5b935e8c9db3a59e81c84b49de3fdc83530 100644 (file)
@@ -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>, Point<3>, double>(point(Value), normal, Mean_Curvature);
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.