Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2020-02-29 22:07:14 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-02-29 22:07:14 +0300
commit22a8a3b21497cdee2efa0d2dca53b34cef8b74c7 (patch)
tree9bc6f344e5bbc1adbc0e8682dbbfaf9de6170468 /tests
parentcb8b424c6bff09bd0f7a8f66c2321c803c6e0bdd (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/modifiers.py27
1 files changed, 27 insertions, 0 deletions
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)