[vtkusers] vtkCellLocator bug !! new year edition, seems that it is an old bug
sebastien MARAUX
maraux at ondim.fr
Mon Jan 6 07:19:12 EST 2003
Hello, I posted a message during christmas holidays
about a vtkCellLocator bug but didn't receive any
answer (well everybody got the right to
take some holidays, right).
I post it again :
I can send a code snip if needed (see also mailing list archive)
I am using vtkCellLocator, and specifically
IntersectWithLine() method, to retrieve height of a
surface from an (x,y) couple : I send a Line
from -FLT_MAX (in c++) to +FLT_MAX for (x,y)
couple and retrieve z of resulting intersection point.
This gives sometimes good results,
but also sometimes bad ones.
You can see on the picture that mi elevatino model is regularly
triangulated (DEM_data), but the polygon_data mapped on it
gets some wierd up and down effects, because of 6 or 7 points
which height has been badly retrieved (always > than real height).
You don't see it here but other points map perfectly the
DEM.
Thank you to help me fix this, I think it would be very valuable
to correct such a bug.
Sebastien MARAUX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030106/dc554144/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygon_data.jpg
Type: image/jpeg
Size: 4038 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030106/dc554144/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DEM_data.gif
Type: image/gif
Size: 8144 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030106/dc554144/attachment.gif>
More information about the vtkusers
mailing list