mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Fix tests after ea84f82
This commit is contained in:
@@ -558,7 +558,7 @@ class Misc:
|
|||||||
def run_root_copy_class(cls, obj=None): pass
|
def run_root_copy_class(cls, obj=None): pass
|
||||||
def scale_object_to_height(cls, obj, height): pass
|
def scale_object_to_height(cls, obj, height): pass
|
||||||
def set_object_origin_to_bottom(cls, obj): pass
|
def set_object_origin_to_bottom(cls, obj): pass
|
||||||
def split_objects_with_cutter(cls, objs, cutter): pass
|
def boolean_objects_with_cutter(cls, objs, cutter): pass
|
||||||
|
|
||||||
|
|
||||||
@interface
|
@interface
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class TestSplitObjectsWithCutter(test.bim.bootstrap.NewFile):
|
|||||||
obj = bpy.data.objects.get("Cube")
|
obj = bpy.data.objects.get("Cube")
|
||||||
cutter = bpy.data.objects.get("Plane")
|
cutter = bpy.data.objects.get("Plane")
|
||||||
assert obj.dimensions[2] == 2
|
assert obj.dimensions[2] == 2
|
||||||
new_objs = subject.split_objects_with_cutter([obj], cutter)
|
new_objs = subject.boolean_objects_with_cutter([obj], cutter)
|
||||||
assert new_objs[0].name == "Cube.001"
|
assert new_objs[0].name == "Cube.001"
|
||||||
assert obj.dimensions[2] == 1
|
assert obj.dimensions[2] == 1
|
||||||
assert new_objs[0].dimensions[2] == 1
|
assert new_objs[0].dimensions[2] == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user