[vtkusers] vtkStreamTracer on Unstructured Cell Based Data

Trinian Gordon trinian.gordon at outlook.com
Fri Jan 11 15:09:31 EST 2019


Hello,

Starting from an unstructured grid, I have a cell based vector parameter which I would like to use to generate streamlines. When I load the data into Paraview, I am able to generate valid streamlines, but when I try and use the vtkStreamTracer to generate streamlines in my own application, it appears to only work if the vector data is set on the point data instead of cell data.


  *   Unstructured Grid -> getCellData()->SetVector -> vtkStreamTracer fails because the point data doesn't have vector data.
  *   Unstructured Grid -> getCellData()->SetVector -> vtkCellDataToPointData -> vtkStreamTracer fails because the tracer needs cells which no longer exist.
  *   I can create an unstructured grid with only points located at the cell centers and set the vector on the point data, but it fails because the tracer needs cells which don't exist.

Any ideas for generating streamlines based on a cell based vector property?

Thanks,
Trinian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190111/969a5851/attachment.html>


More information about the vtkusers mailing list