]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make sketch plane normal (created on selected planar face) oriented outside of the...
authormpv <mpv@opencascade.com>
Thu, 20 Aug 2015 07:04:33 +0000 (10:04 +0300)
committermpv <mpv@opencascade.com>
Thu, 20 Aug 2015 07:04:33 +0000 (10:04 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp

index 46a46d233446b0a923c44dd605128f3e16f88105..8e108ebfa01d4f3423bba3c23f8a617500c69d60 100644 (file)
@@ -67,6 +67,12 @@ std::shared_ptr<GeomAPI_Pln> GeomAlgoAPI_FaceBuilder::plane(
   gp_Pln aPln = isPlanar.Plan();
   double aA, aB, aC, aD;
   aPln.Coefficients(aA, aB, aC, aD);
+  if (aFace.Orientation() == TopAbs_REVERSED) {
+    aA = -aA;
+    aB = -aB;
+    aC = -aC;
+    aD = -aD;
+  }
   aResult = std::shared_ptr<GeomAPI_Pln>(new GeomAPI_Pln(aA, aB, aC, aD));
   return aResult;
 }