BIM: fix profile rotation of elbow pipe connector

Fixes #22761
This commit is contained in:
Roy-043
2025-07-27 16:57:51 +02:00
committed by Yorik van Havre
parent fcd1b923b3
commit e64b654699

View File

@@ -402,6 +402,7 @@ class _ArchPipeConnector(ArchComponent.Component):
v1x = v1.cross(v1y)
rot = FreeCAD.Rotation(v1x,v1y,v1,"ZYX")
p.rotate(p.CenterOfMass,rot.Axis,math.degrees(rot.Angle))
p.rotate(p.CenterOfMass,v1,90)
try:
sh = p.revolve(center,normal,math.degrees(math.pi-v1.getAngle(v2)))
except: