#python import testing setup = testing.setup_mesh_source_test("SurfacePlot") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.SurfacePlot", 8192)
#python import testing setup = testing.setup_mesh_source_test("NurbsDisk") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsDisk", 2)
#python import k3d import testing setup = testing.setup_mesh_source_test("PolyDisk") if k3d.polyhedron.is_solid(k3d.polyhedron.validate(setup.source.output_mesh, setup.source.output_mesh.primitives()[0])): raise Exception("Expected non-solid polyhedron")
#python import testing setup = testing.setup_mesh_source_test("NurbsCylinder") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsCylinder", 2, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("QuadricSphere") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricSphere", 1)
#python import testing setup = testing.setup_mesh_source_test("PolyIcosahedron") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyIcosahedron", 1)
#python import testing setup = testing.setup_mesh_source_test("Paraboloid") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.Paraboloid", 1)
#python import testing setup = testing.setup_mesh_source_test("QuadricCylinder") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricCylinder", 1)
#python import testing setup = testing.setup_mesh_source_test("NurbsHyperboloid") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsHyperboloid", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("NurbsDisk") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsDisk", 2, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("PolyText") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyText", 3, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("LSystemParser") setup.source.growth = 2 testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.LSystemParser", 1)
#python import testing setup = testing.setup_mesh_source_test("QuadricDisk") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricDisk", 1)
#python import testing setup = testing.setup_mesh_source_test("NurbsCurve") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsCurve", 2)
#python import testing setup = testing.setup_mesh_source_test("NurbsTorus") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsTorus", 3, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("QuadricTorus") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricTorus", 1)
#python import testing setup = testing.setup_mesh_source_test("NurbsPolygon") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsPolygon", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("QuadricParaboloid") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricParaboloid", 1)
#python import testing setup = testing.setup_mesh_source_test("QuadricCone") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricCone", 1)
# python import testing setup = testing.setup_mesh_source_test("BlobbySegment") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.BlobbySegment", 2)
#python import testing setup = testing.setup_mesh_source_test("UniformPolyhedron") setup.source.type = "small_stellated_dodecahedron" setup.source.size = 5 testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "source.UniformPolyhedron", 1)
#python import testing setup = testing.setup_mesh_source_test("BlobbySegment") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.BlobbySegment", 2)
#python import testing setup = testing.setup_mesh_source_test("PolyCube") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyCube", 1)
#python import k3d import testing setup = testing.setup_mesh_source_test("PolyCube") if not k3d.polyhedron.is_solid( k3d.polyhedron.validate(setup.source.output_mesh, setup.source.output_mesh.primitives()[0])): raise Exception("Expected solid polyhedron")
# python import testing setup = testing.setup_mesh_source_test("PolyCylinder") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh( setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyCylinder", 2, ["Darwin-i386"] )
#python import testing setup = testing.setup_mesh_source_test("PolyTorus") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyTorus", 1)
#python import testing setup = testing.setup_mesh_source_test("Cone") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.Cone", 1)
#python import k3d import testing setup = testing.setup_mesh_source_test("CUDAPolyGridAndTransformPoints") setup.source.input_matrix = k3d.translate3(k3d.vector3(0, 0, 1)) testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyGridAndTransformPoints", 1)
#python import testing setup = testing.setup_mesh_source_test("NurbsParaboloid") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsParaboloid", 2, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("NurbsHyperboloid") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsHyperboloid", 2)
#python import testing setup = testing.setup_mesh_source_test("LinearLissajousCurve") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.LinearLissajousCurve", 32, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("PolyTorus") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyTorus", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("NurbsCircle") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsCircle", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("PolySphere") setup.source.type = "sphere" testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolySphere.1", 2, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("BlobbyEllipsoid") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.BlobbyEllipsoid", 2)
#python import testing setup = testing.setup_mesh_source_test("Newell") setup.source.type = "teapot" testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.Newell.teapot", 1)
#python import testing setup = testing.setup_mesh_source_test("LinearKnot") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.LinearKnot", 512, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("CUDAPolyGrid") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyGrid", 1)
#python import testing setup = testing.setup_mesh_source_test("Teapot") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.Teapot", 1)
#python import testing setup = testing.setup_mesh_source_test("PolyCushion") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyCushion", 1)
#python import k3d import testing setup = testing.setup_mesh_source_test("CUDAPolyGridAndTransformPoints") setup.source.input_matrix = k3d.translate3(k3d.vector3(0, 0, 1)) testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyGridAndTransformPoints", 1)
#python import testing setup = testing.setup_mesh_source_test("QuadricLogo") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.QuadricLogo", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("KnotCurve") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.KnotCurve", 300)
#python import testing setup = testing.setup_mesh_source_test("NurbsCircle") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.NurbsCircle", 2)
#python import testing setup = testing.setup_mesh_source_test("PolySphere") setup.source.type = "sphereized_cylinder" testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolySphere.3", 2, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("Newell") setup.source.type = "teaspoon" testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.Newell.teaspoon", 1)
#python import testing setup = testing.setup_mesh_source_test("PolyDisk") testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyDisk", 1, ["Darwin-i386"])
#python import testing setup = testing.setup_mesh_source_test("PolyText") testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.PolyText", 4)
#python import k3d import testing script_path = k3d.share_path() / k3d.filesystem.generic_path( "scripts/MeshSourceScript/cylinders.py") script_file = file(str(script_path), "r") setup = testing.setup_mesh_source_test("MeshSourceScript") setup.source.script = script_file.read() testing.mesh_comparison_to_reference(setup.document, setup.source.get_property("output_mesh"), "mesh.source.MeshSourceScript.cylinders", 2)
#python import k3d import testing script_path = k3d.share_path() / k3d.filesystem.generic_path("scripts/MeshSourceScript/bezier_triangle_patches.py") script_file = file(str(script_path), "r") setup = testing.setup_mesh_source_test("MeshSourceScript") setup.source.script = script_file.read() testing.require_valid_mesh(setup.document, setup.source.get_property("output_mesh")) testing.require_similar_mesh(setup.document, setup.source.get_property("output_mesh"), "mesh.source.MeshSourceScript.bezier_triangle_patches", 2)