From 28c497a2529dfb2143b56d953b8022cc143b04e6 Mon Sep 17 00:00:00 2001 From: milovann Date: Sat, 3 Feb 2024 19:46:05 +0100 Subject: [PATCH] pyupdate --- python/extract.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/extract.py b/python/extract.py index a1bc40e..526749a 100644 --- a/python/extract.py +++ b/python/extract.py @@ -60,9 +60,10 @@ def create(name,objects): run("aggregate.assign_object", model, relating_object=building, product=storey) if True: - l = random.random() * 5 - h = random.random() * 3 - t = random.random() * 0.2 + f = 5 + l = random.random() * 5 * f + h = random.random() * 3 * f + t = random.random() * 0.2 * f wall = run("root.create_entity", model, ifc_class="IfcWall") run("geometry.edit_object_placement", model, product=wall) representation = run("geometry.add_wall_representation", model, context=body, length=l, height=h, thickness=t)