Esempio n. 1
0
#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)
Esempio n. 2
0
#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)
Esempio n. 3
0
#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")

Esempio n. 4
0
#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)

Esempio n. 6
0
#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)

Esempio n. 7
0
#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"])

Esempio n. 10
0
#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"])

Esempio n. 11
0
#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)

Esempio n. 13
0
#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)

Esempio n. 14
0
#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)

Esempio n. 15
0
#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)

Esempio n. 17
0
#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"])
Esempio n. 18
0
#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)
Esempio n. 19
0
#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)
Esempio n. 21
0
#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("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"])

Esempio n. 23
0
#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)

Esempio n. 24
0
#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)

Esempio n. 25
0
#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"]
)
Esempio n. 27
0
#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)
Esempio n. 28
0
#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"])

Esempio n. 31
0
#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)
Esempio n. 32
0
#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"])
Esempio n. 33
0
#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"])

Esempio n. 34
0
#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"])

Esempio n. 36
0
#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)
Esempio n. 37
0
#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)
Esempio n. 38
0
#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"])
Esempio n. 39
0
#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)

Esempio n. 40
0
#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)

Esempio n. 41
0
#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"])
Esempio n. 42
0
#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)
Esempio n. 43
0
#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)

Esempio n. 44
0
#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)
Esempio n. 45
0
#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)

Esempio n. 46
0
#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"])

Esempio n. 47
0
#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)
Esempio n. 48
0
#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)

Esempio n. 49
0
#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"])
Esempio n. 50
0
#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("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)

Esempio n. 52
0
#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)
Esempio n. 53
0
#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"])
Esempio n. 54
0
#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)
Esempio n. 55
0
#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)
Esempio n. 56
0
#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 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)

#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"])