I am making some changes to itk-vtk-viewer code as per Geometry / Point selection · Issue #575 · Kitware/itk-vtk-viewer · GitHub
While doing so I am using the getPointId() function from vtkPointPicker to try to select points in the viewer.
Working: When using point_sets data as input to the view (i.e. view(point_sets=[point_set_1]) ), the returned data point ID’s are correct.
Issue: However, when using geometries (i.e. view(geometries=glyphs.GetOutput()) ) the returned ID’s are not correct.
It seems that each glyph has 50 different pointID’s attributed to them? If I take the returned ID and run Math.floor(ID / 50) I get the correct ID.
Questions:
- Is there a way to tell
getPointIdto only read one ID per glyph?- I have tried using
model.annotationPicker.setUseCells(true)but that does not work.
- I have tried using
- If not, is there a way to tell if the data is type
geometriesorpoint_setsfrom insideitk-vtk-viewer?