]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add workaround for compoundVertices
authorNATHALIE GORE <ng13417n@dsp0897499.atlas.edf.fr>
Tue, 13 Aug 2019 08:55:17 +0000 (10:55 +0200)
committerNATHALIE GORE <ng13417n@dsp0897499.atlas.edf.fr>
Tue, 13 Aug 2019 08:55:17 +0000 (10:55 +0200)
src/PythonAddons/macros/compoundVertices/feature.py

index 91bc6017f3dd90119258d8248ef8fdaae2a1d780..d6b5869f3f6e8b94585086458f98ad62fdee2b4f 100644 (file)
@@ -56,8 +56,8 @@ class compoundVertices(model.Feature):
                 for line in file:
                     coord = line.split(' ')
                     x = float(coord[0]); y = float(coord[1]); z = float(coord[2]);
-                    point = model.addPoint(part, x,y,z)
-                    vertex = model.addVertex(part, [point.result()])
+                    point = model.addPoint(part, x,y,z); point.execute(True)
+                    vertex = model.addVertex(part, [point.result()]); vertex.execute(True)
                     lVertices.append(vertex.result())
                 file.close()
                 Compound_1 = model.addCompound(part, lVertices)