try:
#groups = list(MEDLoader.GetMeshGroupsNames(file_path, mesh1))
grps = mesh1.GetGroups()
- groups = [grp.GetName() for grp in grps if grp.GetType() == SMESH.NODE]
+ groups = [grp.GetName() for grp in grps if grp.GetType() == SMESH.FACE]
if len(groups) == 0:
- print "Problem! There are no groups of nodes in the mesh!"
- print "Please create at least the groups of nodes corresponding to each region of the HYDRO case"
+ print "Problem! There are no groups of faces in the mesh!"
+ print "Please create at least the groups of faces corresponding to each region of the HYDRO case"
return []
print 'Found groups:', groups
except:
gridLayout = QGridLayout(area)
gridLayout.addWidget(self)
area.setWidgetResizable(1)
+ sgPyQt.createView("Eficas Pytel", self)
if fichier == None : self.fileNew()
else : self.addJdcInSalome(fichier)
- sgPyQt.createView("Eficas Pytel", self)
-
def addJdcInSalome(self, jdcPath):
"""
Add the newly created file in Salome study