X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FVerima%2FScripts%2Fbb.py;fp=src%2FTools%2FVerima%2FScripts%2Fbb.py;h=581fed89643ea290b72f5325e650acf53b2ce606;hp=0000000000000000000000000000000000000000;hb=2d16118826a6b7874b3093ed11284cfbb30a5efa;hpb=578963d0d280466665d5440859bb97e3ee8b6b3e diff --git a/src/Tools/Verima/Scripts/bb.py b/src/Tools/Verima/Scripts/bb.py new file mode 100644 index 000000000..581fed896 --- /dev/null +++ b/src/Tools/Verima/Scripts/bb.py @@ -0,0 +1,26 @@ +# Get Information About Mesh by GetMeshIn +import salome +import smesh +import SMESH, SALOMEDS + +salome.salome_init() +theStudy = salome.myStudy +smesh.SetCurrentStudy(theStudy) + +aMesh,aResult = smesh.CreateMeshesFromMED('/tmp/MASSIF.new.med') +print aResult, aMesh + +monMesh=aMesh[0] + +# Get Information About Group by GetMeshInfo +print "\nInformation about group by GetMeshInfo:" +lGroups=monMesh.GetGroups() +print lGroups +for g in lGroups : + print g.GetName() +info = smesh.GetMeshInfo(lGroups[0]) +keys = info.keys(); keys.sort() +for i in keys: + print " %s : %d" % ( i, info[i] ) + pass +#