mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
Black formatting window modifier
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user