Bug in vtkCellPickerWithBounds::IntersectDataSetWithLine when t1 != 0.0 || t2 != 1.0
Hi everyone,
I have detected an error while trying to do a pick using a polyData with clipping planes. Vars "t1" and "t2" are recalculated in function "vtkCellPicker::ClipLineWithPlanes". Then, in fuction "vtkCellPicker::IntersectDataSetWithLine" the value of "t" is recalculated when t1 != 0.0 || t2 != 1.0. The error code is
// Stretch tMin out to the original range if (t1 != 0.0 || t2 != 1.0) { t = t1*(1.0 - tMin) + t2*t; }
when the correct calculation (as you can see a few code forward when locator is null) will be:
// Stretch t out to the original range if (t1 != 0.0 || t2 != 1.0) { t = t1*(1.0 - t) + t2*t; }
I have tried this correction and now all is working well. If you need more information it will be a pleasure for me to help you.
I am using 8.0.1 version.
Many thanks. Adrian.