Black formatting window modifier

This commit is contained in:
Andrej730
2023-01-25 10:49:03 +05:00
parent a6271d0936
commit 9f0ad9be3c
9 changed files with 295 additions and 276 deletions
@@ -66,6 +66,7 @@ def simple_uses():
ifc_file.write("tmp.ifc")
def generate_desk_test():
ifc_file = ifcopenshell.file()
desks = [
@@ -80,6 +81,7 @@ def generate_desk_test():
ifc_file.write("tmp.ifc")
def mirror_placement_test():
ifc_file = ifcopenshell.api.run("project.create_file")
project = ifcopenshell.api.run(
@@ -153,6 +155,7 @@ def mirror_placement_test():
ifc_file.write("tmp.ifc")
def curve_between_two_points_test():
ifc_file = ifcopenshell.api.run("project.create_file")
project = ifcopenshell.api.run(
@@ -217,6 +220,7 @@ def curve_between_two_points_test():
ifc_file.write("tmp.ifc")
def generate_simple_desk(ifc_file, width, depth, height):
# > width, depth, height in mm
width, depth, height = [i / 1000 for i in (width, depth, height)]
@@ -226,6 +230,7 @@ def generate_simple_desk(ifc_file, width, depth, height):
extruded_area = builder.extrude(profile, height)
return extruded_area
def generate_table(ifc_file, width, depth, height, countertop_thickness=20, leg_size=40, leg_offset=50):
# > width, depth, height in mm
width, depth, height, countertop_thickness, leg_size, leg_offset = [