Fast way to convert a vtkIdList to vtkIdTypeArray

Hello

I am working on a python scripted module and want to convert a vtkIdList (output from vtkStaticPointLocator::FindPointsWithinRadius) to a vtkIdTypeArray. What is the best way to do this?

So far I have only found code examples where they iterate through all items, adding them to the array, which for me runs quite slow.

I have not found any working examples using vtkIdList::SetArray, and cannot seem to get it working myself. Is there an quick way to access vtkIdList’s underlying array?

Thankful for any advice!
/Jens