Esempio n. 1
0
 def OnOpenMesh(self):
     filename = dlg.ShowImportMeshFilesDialog()
     if filename:
         if self.affinestatus:
             converttoInV = dlg.ImportMeshCoordSystem()
             Publisher.sendMessage('Update converttoInV flag', converttoInV=converttoInV)
         Publisher.sendMessage('Import surface file', filename=filename)
Esempio n. 2
0
 def OnOpenMesh(self):
     filename = dlg.ShowImportMeshFilesDialog()
     if filename:
         if not np.allclose(slice_.Slice().affine, np.eye(4)):
             convert_to_inv = dlg.ImportMeshCoordSystem()
             Publisher.sendMessage('Update convert_to_inv flag',
                                   convert_to_inv=convert_to_inv)
         Publisher.sendMessage('Import surface file', filename=filename)
Esempio n. 3
0
 def OnOpenMesh(self):
     filename = dlg.ShowImportMeshFilesDialog()
     if filename:
         Publisher.sendMessage('Import surface file', filename=filename)
Esempio n. 4
0
 def OnOpenMesh(self):
     filename = dlg.ShowImportMeshFilesDialog()
     if filename:
         convert2inv = dlg.ImportMeshCoordSystem()
         Publisher.sendMessage('Update convert2inv flag', convert2inv=convert2inv)
         Publisher.sendMessage('Import surface file', filename=filename)