Bim: Fix direction of panel waves (#23271)

* Update ArchPanel.py

* Update ArchPanel.py
This commit is contained in:
Roy-043
2025-08-25 18:09:31 +02:00
committed by GitHub
parent a362c4915e
commit 6c63c298fc

View File

@@ -403,6 +403,9 @@ class _Panel(ArchComponent.Component):
baseface = Part.Face(basewire)
base = baseface.extrude(Vector(0,bb.YLength,0))
if normal.cross(FreeCAD.Vector(0,0,1)).Length > 1e-6:
rot = FreeCAD.Rotation(FreeCAD.Vector(0,-1,0),FreeCAD.Vector(*normal[:2],0))
base.rotate(bb.Center,rot.Axis,math.degrees(rot.Angle))
rot = FreeCAD.Rotation(FreeCAD.Vector(0,0,1),normal)
base.rotate(bb.Center,rot.Axis,math.degrees(rot.Angle))
if obj.WaveDirection.Value: