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
bos #20087: [CEA 20080] spacing value constraint not taken into account in Body fitti...
[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 f4b257c87ac59f0062f9f0393a1d0156d12ba3f2..27565e680d6dc55e35951954d544c9bf74fb663c 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-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
@@
-34,7
+34,7
@@
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
from salome.smesh import smeshBuilder
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())