Salome HOME
Fix compoundVertices and adding list of parameters
[modules/shaper.git] / src / PythonAddons / macros / compoundVertices / feature.py
index 141b35bb04129aac39e2a4a4ef4578dc9560f131..91bc6017f3dd90119258d8248ef8fdaae2a1d780 100644 (file)
@@ -56,13 +56,11 @@ class compoundVertices(model.Feature):
                 for line in file:
                     coord = line.split(' ')
                     x = float(coord[0]); y = float(coord[1]); z = float(coord[2]);
-                    print(line)
                     point = model.addPoint(part, x,y,z)
-                    print(line)
                     vertex = model.addVertex(part, [point.result()])
-                    print(line)
-                    #lVertices.append(vertex)
+                    lVertices.append(vertex.result())
                 file.close()
+                Compound_1 = model.addCompound(part, lVertices)
                 return
         
             setError("The file does not exist")