<div dir="ltr">Hello,<div><br></div><div>I am trying to extract specific points and their corresponding values from an unstructured grid dataset using python. My objective is to provide a list of pointID's or X,Y,Z locations, the name of the result I would like to extract and in return get a list containing the values.. The values associated with the points are in vector, scalar and/or tensor form. I've made several attempts using the following classes of objects described in the vtk class documentation:</div><div><ul><li>vtkExtractSelection</li><li>vtkSelection</li><li>vtkSelectionNode</li><li>vtkSelectionSource</li><li>vtkUnstructuredGridReader</li></ul><div>It appears that these objects are somewhat related. For instance the vtkExtractSelection object can take in a vtkObject output from an unstructured grid reader and a vtkSelection. A vtkSelection can carry any number of vtkSelectionNodes. The vtkSelection node stores selection parameters for a list of properties and a list of selection values. The list of properties can contain information about what is stored by the node such as GLOBALID and LOCATION. It is also possible to assign several vtkSelectionNodes as ContentTypes and FieldTypes to a vtkSelectionSourceObject. The vtkSelectionSource object itself outputs a vtkSelection when piece id and cell id pairs are provided as input.  I have also noticed it is possible to .AddID and .AddLocation to a vtkSelectionSource object.</div></div><div><br></div><div>Furthermore I have searched through the available examples including the following:</div><div><br></div><div><a href="https://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Infovis/Python/graph_selection_subtract.py">https://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Infovis/Python/graph_selection_subtract.py</a><br></div><div><br></div><div><a href="https://www.programcreek.com/python/example/21682/vtk.vtkExtractUnstructuredGrid" target="_blank" style="font-size:12.8px">https://www.programcreek.com/<wbr>python/example/21682/vtk.<wbr>vtkExtractUnstructuredGrid</a><br></div><div><br></div><div>I also asked a fairly detailed question on stackexchange:</div><div><br></div><div><a href="https://stackoverflow.com/questions/47332100/selectionnode-object-from-vtk-library">https://stackoverflow.com/questions/47332100/selectionnode-object-from-vtk-library</a><br></div><div><br></div><div>The stackexchange post has of yet received no response, and the examples were helpful but didn't quite get me there. </div><div><br></div><div>In light of what I have explained above, does anyone have further indications of what I can do to achieve this? Thanks you kindly for your consideration and look forward to your responses.</div><div><br></div><div>Regards,</div><div><br></div><div>Amine</div><div><br></div><div><br></div></div>