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
Copyright update 2020
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_flight_skin.py
diff --git
a/src/SMESH_SWIG/SMESH_flight_skin.py
b/src/SMESH_SWIG/SMESH_flight_skin.py
index 144a9fab95bb31ecd56fa11b28c14972768306f8..766b128e0394b3c2e81990e0c8fcc7faf3d89405 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_flight_skin.py
+++ b/
src/SMESH_SWIG/SMESH_flight_skin.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
@@
-29,11
+29,11
@@
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
salome.myStudy
)
+geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
# ---------------------------- GEOM --------------------------------------
# ---------------------------- GEOM --------------------------------------
@@
-62,7
+62,7
@@
print("number of Edges in flight : ", len(subEdgeList))
### ---------------------------- SMESH --------------------------------------
### ---------------------------- SMESH --------------------------------------
-smesh.
SetCurrentStudy(salome.myStudy
)
+smesh.
UpdateStudy(
)
# ---- init a Mesh with the shell
shape_mesh = salome.IDToObject( idShape )
# ---- init a Mesh with the shell
shape_mesh = salome.IDToObject( idShape )
@@
-96,8
+96,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 Mesh_mechanic_tetra:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print("Information about the Mesh_mechanic_tetra:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
@@
-107,4
+107,4
@@
if ret != 0:
else:
print("probleme when computing the mesh")
else:
print("probleme when computing the mesh")
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()