Beispiel #1
0
def check_user_setting_cuts():
    '''
    for testing user interaction
    '''
    delete_all()
    #myMesh = mesh.make_test_mesh()
    myMesh = mesh.Mesh(meshLoad.load_mesh("/TestMeshes/blob"))
    meshDisplayer = mesh.MeshDisplayer(myMesh)
    userCuts.get_user_cuts(myMesh,meshDisplayer)
Beispiel #2
0
 def test_auto_generates_cuts_on_blob(self):
     bMesh = mesh.Mesh(meshLoad.load_mesh("/TestMeshes/blob"))
     cuts = autoCuts.auto_fill_cuts(bMesh,[],weight_function)
     displayer = mesh.MeshDisplayer(bMesh)
     #displayer.display_edges(cuts)
     self.check_spanning_forest(bMesh)
Beispiel #3
0
 def test_updates_mesh_cut_list(self):
     rMesh = meshLoad.load_mesh("/TestMeshes/blob")
Beispiel #4
0
 def test_applies_cut_list_to_mesh(self):
     rMesh = meshLoad.load_mesh("/TestMeshes/blob")
     cutList = [0,1,2]
     key = 'cuts'
     userCuts.apply_user_cuts(rMesh,key,cutList)
     self.assertEqual(cutList,list(rMesh.UserDictionary.Item[key]))