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
generalisation publication conditionnelle
[modules/smesh.git]
/
src
/
Tools
/
blocFissure
/
gmu
/
findWireIntermediateVertices.py
diff --git
a/src/Tools/blocFissure/gmu/findWireIntermediateVertices.py
b/src/Tools/blocFissure/gmu/findWireIntermediateVertices.py
index 3b8b40591a38fa1b54f0302a4fb1d0def1275994..63c884458002affa026af13e244052e2b6414c0a 100644
(file)
--- a/
src/Tools/blocFissure/gmu/findWireIntermediateVertices.py
+++ b/
src/Tools/blocFissure/gmu/findWireIntermediateVertices.py
@@
-2,6
+2,9
@@
import logging
from geomsmesh import geompy
import logging
from geomsmesh import geompy
+from geomsmesh import geomPublish
+from geomsmesh import geomPublishInFather
+import initLog
# -----------------------------------------------------------------------------
# --- trouver les vertices intermediaires d'un wire
# -----------------------------------------------------------------------------
# --- trouver les vertices intermediaires d'un wire
@@
-41,11
+44,11
@@
def findWireIntermediateVertices(aWire, getNormals=False):
else:
idsubs[subid] = [sub]
name='vertex%d'%i
else:
idsubs[subid] = [sub]
name='vertex%d'%i
- geom
py.addToStudyInFather(
aWire, sub, name)
+ geom
PublishInFather(initLog.debug,
aWire, sub, name)
if getNormals:
idnorm[subid] = normals[i]
name='norm%d'%i
if getNormals:
idnorm[subid] = normals[i]
name='norm%d'%i
- geom
py.addToStudyInFather(
aWire, normals[i], name)
+ geom
PublishInFather(initLog.debug,
aWire, normals[i], name)
for k, v in idsubs.iteritems():
if len(v) > 1:
shortList.append(v[0])
for k, v in idsubs.iteritems():
if len(v) > 1:
shortList.append(v[0])