Arch: bugfixes in IFC exporter
This commit is contained in:
@@ -583,7 +583,7 @@ class Component:
|
||||
if hasattr(obj.Axis.Proxy,"getPoints"):
|
||||
points = obj.Axis.Proxy.getPoints(obj.Axis)
|
||||
if not points:
|
||||
if obj.Axis.isDerivedFrom("Part.Feature"):
|
||||
if obj.Axis.isDerivedFrom("Part::Feature"):
|
||||
points = [v.Point for v in obj.Axis.Shape.Vertexes]
|
||||
if points:
|
||||
shps = []
|
||||
|
||||
@@ -2309,6 +2309,10 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
|
||||
# base shape not yet created
|
||||
tostore = k
|
||||
|
||||
# unhandled case: object is duplicated because of Axis
|
||||
if obj.isDerivedFrom("Part::Feature") and (len(obj.Shape.Solids) > 1) and hasattr(obj,"Axis") and obj.Axis:
|
||||
forcebrep = True
|
||||
|
||||
if (not shapes) and (not forcebrep):
|
||||
profile = None
|
||||
ev = FreeCAD.Vector()
|
||||
|
||||
Reference in New Issue
Block a user