From: NATHALIE GORE Date: Tue, 13 Aug 2019 08:55:17 +0000 (+0200) Subject: Add workaround for compoundVertices X-Git-Tag: V9_4_0a2~7^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f724968e502c88cb233bcc18a88f4de690309ac;p=modules%2Fshaper.git Add workaround for compoundVertices --- diff --git a/src/PythonAddons/macros/compoundVertices/feature.py b/src/PythonAddons/macros/compoundVertices/feature.py index 91bc6017f..d6b5869f3 100644 --- a/src/PythonAddons/macros/compoundVertices/feature.py +++ b/src/PythonAddons/macros/compoundVertices/feature.py @@ -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)