@@ -0,0 +1,1033 @@
+import numpy as np%0Afrom numpy.testing import assert_array_equal%0A%0Afrom vispy.geometry.meshdata import MeshData%0A%0A%0Adef test_meshdata():%0A    %22%22%22Test meshdata Class%0A       It's a unit square cut in two triangular element%0A    %22%22%22%0A    square_vertices = np.array(%5B%5B0, 0, 0%5D, %5B1, 0, 0%5D, %5B1, 1, 0%5D, %5B0, 1, 0%5D%5D,%0A                               dtype=np.float)%0A    square_faces = np.array(%5B%5B0, 1, 2%5D, %5B0, 2, 3%5D%5D, dtype=np.uint)%0A    square_normals = np.array(%5B%5B0, 0, 1%5D, %5B0, 0, 1%5D, %5B0, 0, 1%5D, %5B0, 0, 1%5D%5D,%0A                              dtype=np.float)%0A    square_edges = np.array(%5B%5B0, 1%5D, %5B0, 2%5D, %5B0, 3%5D, %5B1, 2%5D, %5B2, 3%5D%5D,%0A                            dtype=np.uint)%0A%0A    mesh = MeshData(vertices=square_vertices, faces=square_faces)%0A    # test vertices and faces assignement%0A    assert_array_equal(square_vertices, mesh.vertices())%0A    assert_array_equal(square_faces, mesh.faces())%0A    # test normals calculus%0A    assert_array_equal(square_normals, mesh.vertex_normals())%0A    # test edge calculus%0A    assert_array_equal(square_edges, mesh.edges())%0A

Create test_meshdata.py