Arch: Fixed wrong placement of structures

This commit is contained in:
Yorik van Havre
2018-01-05 20:04:13 -02:00
parent 48b45b6c47
commit aa46c72c6e
2 changed files with 3 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ class Component:
for s in shape:
s = s.copy()
s.translate(v.negative())
s.rotate(FreeCAD.Vector(0,0,0),r.inverted().Axis,math.degrees(r.inverted().Angle))
s.rotate(FreeCAD.Vector(0,0,0),r.Axis,math.degrees(-r.Angle))
shapes.append(s)
p = FreeCAD.Placement()
p.Base = v

View File

@@ -526,9 +526,9 @@ class _Structure(ArchComponent.Component):
h2 = height/2 or 0.5
w2 = width/2 or 0.5
v1 = Vector(0,-w2,-h2)
v2 = Vector(0,-w2,h2)
v4 = Vector(0,-w2,h2)
v3 = Vector(0,w2,h2)
v4 = Vector(0,w2,-h2)
v2 = Vector(0,w2,-h2)
else:
l2 = length/2 or 0.5
w2 = width/2 or 0.5