From 22a8a3b21497cdee2efa0d2dca53b34cef8b74c7 Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Sat, 29 Feb 2020 14:07:14 -0500 Subject: Apply patch D6620, Adde tests for Deform modifiers. This test is authored by Himanshi Kalra (calra). It requires a new modifers.blend in the svn tests. --- tests/python/modifiers.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tests/python') diff --git a/tests/python/modifiers.py b/tests/python/modifiers.py index f2a42f15b43..697cddc9ba2 100644 --- a/tests/python/modifiers.py +++ b/tests/python/modifiers.py @@ -210,6 +210,33 @@ def main(): ["testCubeLattice", "expectedCubeLattice", [ModifierSpec('lattice', 'LATTICE', {'object': bpy.data.objects["testLattice"]})]], + # ModifierSpec('laplacian_deform', 'LAPLACIANDEFORM', {}) Laplacian requires a more complex mesh + + # Mesh Deform Modifier requires user input, so skip. + + # mesh_test = MeshTest("testMonkeyDeform", "expectedMonkeyDeform",[ + # ModifierSpec('mesh_deform', 'MESH_DEFORM', {'object': bpy.data.objects["testDeformStructure"]}), + # OperatorSpec('meshdeform_bind',{'modifier':'MeshDeform'},'FACE',{i for in range(500)}) + # ] ,True) + + ["testPlaneShrinkWrap", "expectedPlaneShrinkWrap", + [ModifierSpec('shrinkwrap', 'SHRINKWRAP', {'target': bpy.data.objects["testCubeWrap"], 'offset': 0.5})]], + + ["testCylinderSimpleDeform", "expectedCylinderSimpleDeform", + [ModifierSpec('simple_deform', 'SIMPLE_DEFORM', {'angle': math.radians(180), 'deform_axis': 'Z'})]], + + ["testPlaneSmooth", "expectedPlaneSmooth", + [ModifierSpec('smooth', 'SMOOTH', {'iterations': 11})]], + + # Smooth corrective requires a complex mesh. + + ["testBalloonLaplacianSmooth", "expectedBalloonLaplacianSmooth", + [ModifierSpec('laplaciansmooth', 'LAPLACIANSMOOTH', {'lambda_factor': 12, 'lambda_border': 12})]], + + # Surface Deform and Warp requires user input, so skip. + + # Wave - requires complex mesh, so skip. + ] modifiers_test = ModifierTest(tests) -- cgit v1.2.3