[vtkusers] Sampling cell-data along a line

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 24 12:46:14 EST 2016


Timofey,

Motivated by your email. I just added this wiki example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/VisualizationAlgorithms/FindCellIntersections

I realize it does not solve your problem, but it does illustrate how
to use the FindCellsAlongLine method. You might try it with one of
your datasets.

Bill


On Tue, Nov 22, 2016 at 5:07 AM, Timofey Mukha <timofey.mukha at it.uu.se> wrote:
> Dear all,
>
> I have some large cell-data from a CFD simulation. I would like to view
> profiles along a line.
> Currently I understand that I can do this with a probeFilter to which I feed
> a line with a given resolution.
>
> The problem is that given a complicated mesh the sampling points on the line
> will probably miss some cells or, on the other hand, some points might fall
> into the same cell.
>
> Is there a way to sample along a line in such a way that the returned
> profile will contain data from all the cells that the line intersects? For
> each cell a sampling point should then be generated somewhere in between the
> point where the line enters the cell and where it exists it.
>
> I tried playing around with the vtkCellLocator, that can find which cells
> are intersected by a given line using the FindCellsAlongLine method.
> However, that does not give the locations of the sampling points, only the
> coordinates of the cell-centers that are intersected by the line. There is
> also the subtle issue of handling cases when the sampling line lies on a
> boundary between two or more cells.
>
> All in all it seems like a more complicated problem than at first glance,
> but I am wondering if someone has already dealt with it before me?
>
> Best,
>
> Timofey
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list