def test_mesh_cuts_sticking_around(self): remove_objects() jMesh = mesh.make_cube_mesh() selection0 = meshLoad.MeshGetter().getRandMesh() #only one mesh to get self.assertTrue(selection0.UserDictionary.ContainsKey(jMesh.cut_key)) jMesh = mesh.Mesh(selection0) correct_cuts = [1, 2, 3] jMesh.set_cuts(correct_cuts) second_mesh = meshLoad.MeshGetter().getRandMesh() item = list(second_mesh.UserDictionary[jMesh.cut_key]) self.assertEqual(correct_cuts, item)
def test_mesh_cuts_sticking_around(self): remove_objects() jMesh = mesh.make_cube_mesh() selection0 = meshLoad.MeshGetter().getRandMesh() #only one mesh to get self.assertTrue(selection0.UserDictionary.ContainsKey(jMesh.cut_key)) jMesh = mesh.Mesh(selection0) correct_cuts = [1,2,3] jMesh.set_cuts(correct_cuts) second_mesh = meshLoad.MeshGetter().getRandMesh() item = list(second_mesh.UserDictionary[jMesh.cut_key]) self.assertEqual(correct_cuts,item)
def test_make_cube_mesh(self): cMesh = mesh.make_cube_mesh() self.assertIsInstance(cMesh, mesh.Mesh)
def test_make_cube_mesh(self): cMesh = mesh.make_cube_mesh() self.assertIsInstance(cMesh,mesh.Mesh)