The indices of the points selected are in a field called "vtkOriginalPointIds".
It is a field with a special meaning and is hidden in some cases.
if you write the selected data to disk, it will show up as field
"vtkOriginalPointIds"
Consider the pvpython code below:
from paraview.simple import *
w = Wavelet()
w.UpdatePipeline()
selection=SelectPoints()
selection.QueryString="RTData <= 40"
selection.FieldType = 'POINT'
selection.UpdatePipelineInformation()
# create a new 'Extract Selection'
mySelection = ExtractSelection(Input=w, Selection=selection)
mySelection.UpdatePipeline()
SaveData("foo.vtk", mySelection)
and inspect the contents of foo.vtk, you will find your ids.
if you need more, I simply use a Python Calculator to rename the field and I
can then access the array
passthru = PythonCalculator(Input = mySelection)
passthru.Expression = 'inputs[0].PointData["vtkOriginalPointIds"]'
passthru.ArrayAssociation = "Point Data"
passthru.ArrayName = 'ids'
passthru.UpdatePipeline()
passthru.GetPointDataInformation().GetArray("ids").GetName()
HTH
Jean
_______________________________________________
Powered by www.kitware.com
ParaView discussion is moving! Please visit https://discourse.paraview.org/ for
future posts.
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview