fix not working bim.generate_space because of the units mismatch

Not sure when this occurred but get_bmesh_from_polygon was expecting Polygon in project units but it was SI. Since it's probably better to move everything to SI, added an option to specify whether polygon is in SI or not.
This commit is contained in:
Andrej730
2024-10-22 16:15:09 +05:00
parent abd7c93c35
commit 54b104b822
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ def generate_space(ifc: tool.Ifc, model: tool.Model, root: tool.Root, spatial: t
if not space_polygon:
return
bm = spatial.get_bmesh_from_polygon(space_polygon, h=h)
bm = spatial.get_bmesh_from_polygon(space_polygon, h=h, polygon_is_si=True)
mesh = spatial.get_named_mesh_from_bmesh(name="Space", bmesh=bm)