Arch: Fixed SectionPlane direction

This commit is contained in:
Yorik van Havre 2014-03-04 13:51:18 -03:00
parent 2a5c51971e
commit e398f3ee7e

View File

@ -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