I use vtk 9.5 with java wrapper. vtkCellLinks can be instantiated and built (with BuildLinks()), but GetLink() and GetCells() simply do not appear in the Java wrapper. I can’t figure out how vtkCellLinks can be useful if links cannot be retrieved. Maybe (probably) I miss something.
How can I do to retrieve my links ? Do I have to build in Java a ‘parallel’ structure ?
but it doesn’t generate Java wrapper code either. However there are other VTK classes which generate correctly e.g. const vtkIdType* vtkWedge::GetFaceArray()
This is a mystery to me. @dgobbi Do you know where the translation from vtkIdType to long long occurs?
The problem is that the original GetCells() method contains no information indicating the size of the array to return. This could be patched in the wrapper code if VTK_SIZEHINT was modified to take a function call.
As a work-around you can paste the code shown above into your VTK source file and rebuild. A new method will be generated in the Java wrapper, so that you can do something like
vtkIdTypeArray cells = new vtkIdTypeArray();
links.GetCells(id, cells);