Skip to content
Snippets Groups Projects
Commit cb8edffd authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot
Browse files

Merge topic 'dataset_adaptor_points_attribute'


24bd6935 Marking the points array from vtkPointSet to be point data.

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Reviewed-by: default avatarBerk Geveci <berk.geveci@kitware.com>
Merge-request: !2672
parents acf8b073 24bd6935
No related branches found
No related tags found
No related merge requests found
......@@ -1022,8 +1022,10 @@ class PointSet(DataSet):
dataset has implicit points."""
if not self.VTKObject.GetPoints():
return None
return vtkDataArrayToVTKArray(
array = vtkDataArrayToVTKArray(
self.VTKObject.GetPoints().GetData(), self)
array.Association = ArrayAssociation.POINT
return array
def SetPoints(self, pts):
"""Given a VTKArray instance, sets the points of the dataset."""
......
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