From dddfbac6aa357ea4f79619c4c10f37a622df1b41 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 4 Mar 2014 13:51:18 -0300 Subject: [PATCH] Arch: Fixed SectionPlane direction --- src/Mod/Arch/ArchSectionPlane.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index b35c2b1f6a..44b2e4b072 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -103,6 +103,9 @@ class _SectionPlane: import Part l = obj.ViewObject.DisplaySize.Value p = Part.makePlane(l,l,Vector(l/2,-l/2,0),Vector(0,0,-1)) + # make sure the normal direction is pointing outwards, you never know what OCC will decide... + if p.normalAt(0,0).getAngle(obj.Placement.Rotation.multVec(FreeCAD.Vector(0,0,1))) > 1: + p.reverse() p.Placement = obj.Placement obj.Shape = p