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
Merge branch 'V9_9_BR'
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_Partition1_tetra.py
diff --git
a/src/SMESH_SWIG/SMESH_Partition1_tetra.py
b/src/SMESH_SWIG/SMESH_Partition1_tetra.py
index 0b6b9824588969a18058a2c1afc77df161d8a919..3f45341204670dbe7365a66cda27f943bd5026cc 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_Partition1_tetra.py
+++ b/
src/SMESH_SWIG/SMESH_Partition1_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
22
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()
from math import sqrt
from math import sqrt
@@
-43,7
+43,7
@@
from math import sqrt
barier_height = 7.0
barier_radius = 5.6 / 2 # Rayon de la bariere
colis_radius = 1.0 / 2 # Rayon du colis
barier_height = 7.0
barier_radius = 5.6 / 2 # Rayon de la bariere
colis_radius = 1.0 / 2 # Rayon du colis
-colis_step = 2.0 # Distance s
\89
parant deux colis
+colis_step = 2.0 # Distance s
�
parant deux colis
cc_width = 0.11 # Epaisseur du complement de colisage
# --
cc_width = 0.11 # Epaisseur du complement de colisage
# --
@@
-172,8
+172,8
@@
ret = mesh.Compute()
if ret != 0:
log=mesh.GetLog(0) # no erase trace
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:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print("Information about the Mesh_mechanic:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
@@
-184,4
+184,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()