Salome HOME
general crack dialog: working on log...
[modules/smesh.git] / src / Tools / blocFissure / gmu / putName.py
1 # -*- coding: utf-8 -*-
2
3 from geomsmesh import smesh
4
5 # -----------------------------------------------------------------------------
6 # --- nommage des objets mesh (algorithme, hypothèse, subMesh)
7
8 def putName(objmesh,name, i=-1):
9   if i >= 0:
10     suffix = "_%d"%i
11     name += suffix
12   smesh.SetName(objmesh, name)
13