Tests: Add basic testing for boolean modifiers.
Test basic Difference operation with both a single Objetc and a collection of three objects as operands, using BMesh (aka 'FAST') mode.
This commit is contained in:
parent
5d9ebea15d
commit
1a3ac2f750
|
@ -213,7 +213,6 @@ def main():
|
|||
SpecMeshTest("MergedNoneWeld", "testMergedNoneWeld", "expectedMergedNoneWeld",
|
||||
[ModifierSpec("weld", 'WELD', {"merge_threshold": 0.019})]),
|
||||
|
||||
|
||||
#############################################
|
||||
# One 'Deform' modifier on primitive meshes
|
||||
#############################################
|
||||
|
@ -325,6 +324,18 @@ def main():
|
|||
|
||||
]
|
||||
|
||||
boolean_basename = "CubeBooleanDiffBMeshObject"
|
||||
tests.append(SpecMeshTest("BooleandDiffBMeshObject", "test" + boolean_basename, "expected" + boolean_basename,
|
||||
[ModifierSpec("boolean", 'BOOLEAN',
|
||||
{"solver": 'FAST', "operation": 'DIFFERENCE', "operand_type": 'OBJECT',
|
||||
"object": bpy.data.objects["test" + boolean_basename + "Operand"]})]))
|
||||
boolean_basename = "CubeBooleanDiffBMeshCollection"
|
||||
tests.append(SpecMeshTest("BooleandDiffBMeshCollection", "test" + boolean_basename, "expected" + boolean_basename,
|
||||
[ModifierSpec("boolean", 'BOOLEAN',
|
||||
{"solver": 'FAST', "operation": 'DIFFERENCE', "operand_type": 'COLLECTION',
|
||||
"collection": bpy.data.collections["test" + boolean_basename + "Operands"]})]))
|
||||
|
||||
|
||||
modifiers_test = RunTest(tests)
|
||||
|
||||
command = list(sys.argv)
|
||||
|
|
Loading…
Reference in New Issue