Skip to content

Commit

Permalink
Arch: Fixed export of non-ortho extrusions to IFC
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 13, 2020
1 parent e6f4a17 commit 4fa967b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Arch/exportIFC.py
Expand Up @@ -1925,18 +1925,18 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
if (not shapes) and obj.isDerivedFrom("Part::Extrusion"):
import ArchComponent
pstr = str([v.Point for v in obj.Base.Shape.Vertexes])
pr = obj.Base.Shape.copy()
pr.scale(preferences['SCALE_FACTOR'])
profile,pl = ArchComponent.Component.rebase(obj,obj.Base.Shape)
profile.scale(preferences['SCALE_FACTOR'])
pl.Base = pl.Base.multiply(preferences['SCALE_FACTOR'])
profile = getProfile(ifcfile,pr)
profile = getProfile(ifcfile,profile)
if profile:
profiledefs[pstr] = profile
ev = obj.Dir
l = obj.LengthFwd.Value
if l:
ev.multiply(l)
ev.multiply(preferences['SCALE_FACTOR'])
ev = pl.Rotation.inverted().multVec(ev)
xvc = ifcbin.createIfcDirection(tuple(pl.Rotation.multVec(FreeCAD.Vector(1,0,0))))
zvc = ifcbin.createIfcDirection(tuple(pl.Rotation.multVec(FreeCAD.Vector(0,0,1))))
ovc = ifcbin.createIfcCartesianPoint(tuple(pl.Base))
Expand Down

0 comments on commit 4fa967b

Please sign in to comment.