# -*- coding: latin-1 -*-
-# Copyright (C) 2009-2013 CEA/DEN, EDF R&D
+# Copyright (C) 2009-2016 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
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# Francis KLOSS : 2012 : CEA-Saclay, DEN, DM2S, SFME, LGLS, F-91191 Gif-sur-Yvette, France
# ========================================================================================
-import geompy
import hexablock
+### import geompy
+geompy = hexablock.geompy
# Charger la geometrie
# ====================
cer_int = []
cer_ext = []
-for j in xrange(4):
+for j in range(4):
a = modele.getEdgeJ(0, j, 1)
cer_int.append(a)
ell_int = []
ell_ext = []
-for j in xrange(4):
+for j in range(4):
a = modele.getEdgeJ(0, j, 0)
ell_int.append(a)
def generatrice(face):
n = 10
l = []
- for i in xrange(0, n+1):
+ for i in range(0, n+1):
v = float(i) / n
s = geompy.MakeVertexOnSurface(face, 0.5, v)
l.append(s)
# Constituer les groupes d'aretes
# -------------------------------
-for i in xrange(2):
- for j in xrange(4):
+for i in range(2):
+ for j in range(4):
arete = modele.getEdgeJ(i, j, 1)
groupe_cercles.addElement(arete)
# Constituer les groupes de faces
# -------------------------------
-for j in xrange(4):
+for j in range(4):
quad = modele.getQuadIJ(0, j, 1)
groupe_couronne.addElement(quad)