[vtk-developers] bug in vtkPointSet::FindCell

Mathieu Westphal mathieu.westphal at kitware.com
Thu Jul 9 06:10:17 EDT 2015


There is a bug in vtkPointCell::FindCell

I copy here my mantis bug and associated notes:
http://www.vtk.org/Bug/view.php?id=15573

The current implementation of FindCell/ FindCellWalk is just wrong and not
working in some case :

See atached image.
In the current implementation there is three pass :

1 : FindPoint, Check CellPoint
2 : Check first neighbor
3 : Check CellPoint within tolerance

In the associated image, one can see the the first pass will find red star
and only check Cell 1
the second pass will only check cell 2
the third pass will not check anything more

Cell 3 will never be found.

I propose a solution based on vtkStreamTracer surface implementation, which
walk among neighbors more smartly using pcoords and cell boundary.

See :
https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/FlowPaths/vtkAbstractInterpolatedVelocityField.cxx#L289
[^
<https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/FlowPaths/vtkAbstractInterpolatedVelocityField.cxx#L289>
]

What do you think ?

Mathieu Westphal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150709/62e3a695/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.png
Type: image/png
Size: 5477 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150709/62e3a695/attachment-0001.png>


More information about the vtk-developers mailing list