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")