Salome HOME
projects
/
modules
/
hexablock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/master' into V9_dev
[modules/hexablock.git]
/
src
/
TEST_PY
/
recettes
/
tuyau.py
diff --git
a/src/TEST_PY/recettes/tuyau.py
b/src/TEST_PY/recettes/tuyau.py
index 3b741e558c350978ad5349e23da6d33b0c85d637..a39d88ae8b81b0c41cbd13f9314ae61c8aa6b26c 100644
(file)
--- a/
src/TEST_PY/recettes/tuyau.py
+++ b/
src/TEST_PY/recettes/tuyau.py
@@
-1,5
+1,5
@@
# -*- coding: latin-1 -*-
# -*- coding: latin-1 -*-
-# Copyright (C) 2009-201
4
CEA/DEN, EDF R&D
+# Copyright (C) 2009-201
6
CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-116,7
+116,7
@@
cer_ext_dep = modele.getVertexIJK(1, 0, 1)
cer_int = []
cer_ext = []
cer_int = []
cer_ext = []
-for j in
x
range(4):
+for j in range(4):
a = modele.getEdgeJ(0, j, 1)
cer_int.append(a)
a = modele.getEdgeJ(0, j, 1)
cer_int.append(a)
@@
-134,7
+134,7
@@
ell_ext_dep = modele.getVertexIJK(1, 0, 0)
ell_int = []
ell_ext = []
ell_int = []
ell_ext = []
-for j in
x
range(4):
+for j in range(4):
a = modele.getEdgeJ(0, j, 0)
ell_int.append(a)
a = modele.getEdgeJ(0, j, 0)
ell_int.append(a)
@@
-150,7
+150,7
@@
doc.associateClosedLine(ell_ext_dep, ell_ext, [sh_tuyau], [15, 8], 1, True)
def generatrice(face):
n = 10
l = []
def generatrice(face):
n = 10
l = []
- for i in
x
range(0, n+1):
+ for i in range(0, n+1):
v = float(i) / n
s = geompy.MakeVertexOnSurface(face, 0.5, v)
l.append(s)
v = float(i) / n
s = geompy.MakeVertexOnSurface(face, 0.5, v)
l.append(s)
@@
-216,8
+216,8
@@
groupe_exterieur = doc.addQuadGroup("Exterieur")
# Constituer les groupes d'aretes
# -------------------------------
# Constituer les groupes d'aretes
# -------------------------------
-for i in
x
range(2):
- for j in
x
range(4):
+for i in range(2):
+ for j in range(4):
arete = modele.getEdgeJ(i, j, 1)
groupe_cercles.addElement(arete)
arete = modele.getEdgeJ(i, j, 1)
groupe_cercles.addElement(arete)
@@
-230,7
+230,7
@@
for i in xrange(2):
# Constituer les groupes de faces
# -------------------------------
# Constituer les groupes de faces
# -------------------------------
-for j in
x
range(4):
+for j in range(4):
quad = modele.getQuadIJ(0, j, 1)
groupe_couronne.addElement(quad)
quad = modele.getQuadIJ(0, j, 1)
groupe_couronne.addElement(quad)