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
Update translations to French
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_fixation_hexa.py
diff --git
a/src/SMESH_SWIG/SMESH_fixation_hexa.py
b/src/SMESH_SWIG/SMESH_fixation_hexa.py
index 32eb83eb5564cd26a8554d25014899e871ef93bc..7e7d1e89db5217da0a513ece920bb539e3b3eec5 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_fixation_hexa.py
+++ b/
src/SMESH_SWIG/SMESH_fixation_hexa.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-20
20
CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-30,7
+30,7
@@
import SMESH_fixation
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
compshell = SMESH_fixation.compshell
idcomp = SMESH_fixation.idcomp
compshell = SMESH_fixation.compshell
idcomp = SMESH_fixation.idcomp
@@
-50,7
+50,7
@@
status = geompy.CheckShape(compshell)
print(" check status ", status)
### ---------------------------- SMESH --------------------------------------
print(" check status ", status)
### ---------------------------- SMESH --------------------------------------
-smesh.
SetCurrentStudy(salome.myStudy
)
+smesh.
UpdateStudy(
)
# ---- init a Mesh with the compshell
shape_mesh = salome.IDToObject( idcomp )
# ---- init a Mesh with the compshell
shape_mesh = salome.IDToObject( idcomp )
@@
-87,8
+87,8
@@
ret = mesh.Compute()
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+
#
for linelog in log:
+
#
print(linelog)
print("Information about the MeshcompShel:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print("Information about the MeshcompShel:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
@@
-99,4
+99,4
@@
if ret != 0:
else:
print("problem when Computing the mesh")
else:
print("problem when Computing the mesh")
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()