BIM: add formatting off comments (#24502)

This commit is contained in:
marcuspollio
2025-10-08 21:48:08 +02:00
committed by GitHub
parent 4323840e8e
commit 17c8da0244
3 changed files with 8 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ else:
# \endcond
# fmt: off
BuildingTypes = ['Undefined',
'Agricultural - Barn',
'Agricultural - Chicken coop or chickenhouse',
@@ -194,6 +195,7 @@ BuildingTypes = ['Undefined',
'Other - Workshop',
'Other - World trade centre'
]
# fmt: on
def makeBuilding(objectslist=None,name=None):

View File

@@ -60,6 +60,7 @@ else:
unicode = str
# fmt: off
BuildingTypes = ['Undefined',
'Agricultural - Barn',
'Agricultural - Chicken coop or chickenhouse',
@@ -200,6 +201,7 @@ BuildingTypes = ['Undefined',
'Other - Workshop',
'Other - World trade centre'
]
# fmt: on
class BuildingPart(ArchIFC.IfcProduct):

View File

@@ -663,10 +663,12 @@ def getMesh(obj):
me = Mesh.Mesh(meshdata)
# get transformation matrix
m = obj.matrix
# fmt: off
mat = FreeCAD.Matrix(m[0], m[3], m[6], m[9],
m[1], m[4], m[7], m[10],
m[2], m[5], m[8], m[11],
0, 0, 0, 1)
# fmt: on
pl = FreeCAD.Placement(mat)
return me,pl
@@ -733,10 +735,12 @@ def getShape(obj,objid):
if DEBUG: print(" object ", objid, " does not contain any geometry")
if not IFCOPENSHELL5:
m = obj.matrix
# fmt: off
mat = FreeCAD.Matrix(m[0], m[3], m[6], m[9],
m[1], m[4], m[7], m[10],
m[2], m[5], m[8], m[11],
0, 0, 0, 1)
# fmt: on
sh.Placement = FreeCAD.Placement(mat)
# if DEBUG: print("getting Shape from ",obj)
#print("getting shape: ",sh,sh.Solids,sh.Volume,sh.isValid(),sh.isNull())