Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'gni/evolution'
[modules/smesh.git]
/
src
/
Tools
/
blocFissure
/
gmu
/
putName.py
diff --git
a/src/Tools/blocFissure/gmu/putName.py
b/src/Tools/blocFissure/gmu/putName.py
index c7480fb8f20a7f88bb9fc425ebede280a758fa6d..af556e6229a602ae5f6f87bb8dfaf27316f925d0 100644
(file)
--- a/
src/Tools/blocFissure/gmu/putName.py
+++ b/
src/Tools/blocFissure/gmu/putName.py
@@
-18,12
+18,18
@@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from .geomsmesh import smesh
+"""Nommage des objets mesh (algorithme, hypothèse, subMesh)"""
-# -----------------------------------------------------------------------------
-# --- nommage des objets mesh (algorithme, hypothèse, subMesh)
+from .geomsmesh import smesh
def putName (objmesh, name, i_suff=-1, i_pref=-1):
def putName (objmesh, name, i_suff=-1, i_pref=-1):
+ """Nommage des objets mesh
+
+ @objmesh objet à nommer
+ @name le nom brut
+ @i_suff un éventuel suffixe
+ @i_pref un éventuel préfixe
+ """
# suffixe éventuel :
if i_suff >= 0:
# suffixe éventuel :
if i_suff >= 0:
@@
-36,4
+42,3
@@
def putName (objmesh, name, i_suff=-1, i_pref=-1):
name = prefixe + name
smesh.SetName(objmesh, name)
name = prefixe + name
smesh.SetName(objmesh, name)
-