]> SALOME platform Git repositories - modules/geom.git/blobdiff - doc/salome/examples/complex_objs_ex03.py
Salome HOME
0022748: [EDF] Improvement of Filling operation
[modules/geom.git] / doc / salome / examples / complex_objs_ex03.py
index 35ccf08579f728bd45941d9c4d03ca851b9efeb9..0c56c81e8bb5c352c312ce992393653e1462c1c5 100644 (file)
@@ -20,14 +20,12 @@ p3 = geompy.MakeVertex(  -30.,  -30.,  10.)
 
 # create an arc from three points
 arc = geompy.MakeArc(p1, p2, p3)
-ShapeListCompound = []
-i = 0
-while i <= 3 :
+ContoursList = []
+for i in range(4):
     S = geompy.MakeTranslation(arc, i * 50., 0., 0.)
-    ShapeListCompound.append(S)
-    i = i + 1
+    ContoursList.append(S)
 
-compound = geompy.MakeCompound(ShapeListCompound)
+compound = geompy.MakeCompound(ContoursList)
 
 # create a filling
 filling = geompy.MakeFilling(compound, mindeg, maxdeg, tol3d, tol2d, nbiter)