Skip to content
Snippets Groups Projects
Commit d3e3b1eb authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

python points can be set from vtkPoints or numpy array

parent 51d11b0f
No related branches found
No related tags found
No related merge requests found
......@@ -325,11 +325,11 @@ class PointSet(DataSet):
@points.setter
def points(self, points):
if not NUMPY_AVAILABLE:
if isinstance(pts, vtkPoints):
self.SetPoints(pts)
return
if isinstance(points, vtkPoints):
self.SetPoints(points)
return
if not NUMPY_AVAILABLE:
raise ValueError("Expect vtkPoints")
pts = dsa.numpyTovtkDataArray(points, "points")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment