Arch: small fix in section planes

This commit is contained in:
Yorik van Havre 2014-06-21 18:57:14 -03:00
parent 13e006cf35
commit b08e5dec7c

View File

@ -4306,6 +4306,7 @@ class _Shape2DView(_DraftObject):
cuts = [] cuts = []
if obj.ProjectionMode == "Solid": if obj.ProjectionMode == "Solid":
for sh in shapes: for sh in shapes:
if cutv:
if sh.Volume < 0: if sh.Volume < 0:
sh.reverse() sh.reverse()
#if cutv.BoundBox.isIntersection(sh.BoundBox): #if cutv.BoundBox.isIntersection(sh.BoundBox):
@ -4317,6 +4318,11 @@ class _Shape2DView(_DraftObject):
cuts.extend(c.Solids) cuts.extend(c.Solids)
else: else:
cuts.append(c) cuts.append(c)
else:
if onlysolids:
cuts.extend(sh.Solids)
else:
cuts.append(sh.copy())
comp = Part.makeCompound(cuts) comp = Part.makeCompound(cuts)
opl = FreeCAD.Placement(obj.Base.Placement) opl = FreeCAD.Placement(obj.Base.Placement)
proj = opl.Rotation.multVec(FreeCAD.Vector(0,0,1)) proj = opl.Rotation.multVec(FreeCAD.Vector(0,0,1))