[vtkusers] vtkExtractSelection does not recognize GlobalIDs from imported vtu file

lp lotterluke at gmail.com
Wed Apr 25 07:35:59 EDT 2018


I am trying to select cells from an imported vtu file by their GlobalIDs, but
vtkExtractSelection returns 0 cells.
The issue seems to be that vtkXMLUnstructuredGridReader imports the array
containing the GlobalIDs as an array of type long, but vtkExtractSelection
expects the GlobalIDs to be of type idtype.

Attached you can find a small example with a test vtu-file containing 1 cell
with a GlobalID of 333. 
The vtkExtractSelection does not recognize this cell.

Is this the expected behavior for this work flow?

Is there an option on the reader or the selection that I have to set to
handle the GlobalIDs properly?

This was tested with VTK build from git master on 25 Apr 2018.

Regards,
Lukas 

CMakeLists.txt
<http://vtk.1045678.n5.nabble.com/file/t340908/CMakeLists.txt>  
ReadUnstructuredGrid.cxx
<http://vtk.1045678.n5.nabble.com/file/t340908/ReadUnstructuredGrid.cxx>  
testFile.vtu <http://vtk.1045678.n5.nabble.com/file/t340908/testFile.vtu>  



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list