Formwork area calculation now unions objects before remeshing to account for overlapping geometry

This commit is contained in:
Dion Moult
2021-10-27 09:58:29 +11:00
parent 80b8da629d
commit 341451f59b
3 changed files with 27 additions and 15 deletions
@@ -28,3 +28,13 @@ Scenario: Calculate object volumes
And the object "Cube" is selected
When I press "bim.calculate_object_volumes"
Then "scene.BIMQtoProperties.qto_result" is "8.0"
Scenario: Calculate formwork areas
Given an empty Blender session
And I add a cube
And I add a cube of size "1" at "1,0,0"
And the object "Cube" is selected
And additionally the object "Cube.001" is selected
When I set "scene.BIMQtoProperties.qto_methods" to "FORMWORK"
And I press "bim.execute_qto_method"
Then "scene.BIMQtoProperties.qto_result" is "21.5"
+1
View File
@@ -99,6 +99,7 @@ def i_add_a_cube():
bpy.ops.object.modifier_add(type="ARRAY")
@given(parsers.parse('I add a cube of size "{size}" at "{location}"'))
@when(parsers.parse('I add a cube of size "{size}" at "{location}"'))
def i_add_a_cube_of_size_size_at_location(size, location):
bpy.ops.mesh.primitive_cube_add(size=float(size), location=[float(co) for co in location.split(",")])