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
Fix typo by Kunda
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_box_tetra.py
diff --git
a/src/SMESH_SWIG/SMESH_box_tetra.py
b/src/SMESH_SWIG/SMESH_box_tetra.py
index d2e6c8e711c8cb76b06d7d6a5722a04a7ad3e444..5a2b564bed2a66a7f429e57cfad23b6dd2d5c2cf 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_box_tetra.py
+++ b/
src/SMESH_SWIG/SMESH_box_tetra.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-201
9
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
@@
-28,13
+28,13
@@
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()
-# ---- define a box
e
+# ---- define a box
box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
@@
-52,7
+52,7
@@
print("number of Edges in box : ", len(subEdgeList))
### ---------------------------- SMESH --------------------------------------
### ---------------------------- SMESH --------------------------------------
-# ---- init a Mesh with the box
e
+# ---- init a Mesh with the box
mesh = smesh.Mesh(box, "MeshBox")
mesh = smesh.Mesh(box, "MeshBox")
@@
-90,13
+90,13
@@
print(hypVolume.GetId())
print(hypVolume.GetMaxElementVolume())
smesh.SetName(hypVolume, "MaxElementVolume_" + str(maxElementVolume))
print(hypVolume.GetMaxElementVolume())
smesh.SetName(hypVolume, "MaxElementVolume_" + str(maxElementVolume))
-print("-------------------------- compute the mesh of the box
e
")
+print("-------------------------- compute the mesh of the box")
ret = mesh.Compute()
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
ret = mesh.Compute()
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 MeshBox:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print("Information about the MeshBox:")
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()