Arch: small fix in section planes
This commit is contained in:
parent
13e006cf35
commit
b08e5dec7c
|
@ -4306,17 +4306,23 @@ class _Shape2DView(_DraftObject):
|
||||||
cuts = []
|
cuts = []
|
||||||
if obj.ProjectionMode == "Solid":
|
if obj.ProjectionMode == "Solid":
|
||||||
for sh in shapes:
|
for sh in shapes:
|
||||||
if sh.Volume < 0:
|
if cutv:
|
||||||
sh.reverse()
|
if sh.Volume < 0:
|
||||||
#if cutv.BoundBox.isIntersection(sh.BoundBox):
|
sh.reverse()
|
||||||
# c = sh.cut(cutv)
|
#if cutv.BoundBox.isIntersection(sh.BoundBox):
|
||||||
#else:
|
# c = sh.cut(cutv)
|
||||||
# c = sh.copy()
|
#else:
|
||||||
c = sh.cut(cutv)
|
# c = sh.copy()
|
||||||
if onlysolids:
|
c = sh.cut(cutv)
|
||||||
cuts.extend(c.Solids)
|
if onlysolids:
|
||||||
|
cuts.extend(c.Solids)
|
||||||
|
else:
|
||||||
|
cuts.append(c)
|
||||||
else:
|
else:
|
||||||
cuts.append(c)
|
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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user