[vtkusers] vtkImageData::FindCell

David Doria daviddoria at gmail.com
Wed Dec 1 13:13:38 EST 2010


> David, can you put this into the bug tracker?  The entry doesn't have to say
> much, it just has to say that vtkImageData::FindCell ignores the tolerance
> and that, because of this, there is no way to ensure that FindCell will
> return
> a cell when given a point that lies on the boundary of the data set.
> There is a good chance that I can do a fix for this in the coming weeks.
>   David
>

Here you go:
http://public.kitware.com/Bug/view.php?id=11550

That'd be great, thanks.

While you add it, can you add a FindCell(double[3]) convenience function?

The interface is crazy if all you want is the cell id.

int vtkImageData::FindCell(double p[3])
{
 int subId;
 double pcoords[3] = {0,0,0};
 double weights[8];
 return image->FindCell(p, NULL, 0, epsilon, subId, pcoords, weights);
}

David



More information about the vtkusers mailing list