[vtkusers] Check if point is inside convex hull

David Doria daviddoria+vtk at gmail.com
Wed Nov 4 07:54:54 EST 2009


On Wed, Nov 4, 2009 at 7:23 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch> wrote:
> Your mesh is a vtkUnstructuredGrid, i.e. it is a vtkDataSet.
>
>
> call the function:
>
> vtkDataSet::FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double
> tol2, int &subId, double pcoords[3], double *weights)
>
> or any other variant of this function.
>
>
> It returns the cell Id or -1 if no cell was found to contain the point.


Dirk,

Can you make a simple, self contained demo of this once you get it to
work and add it to the wiki?

Thanks,

David



More information about the vtkusers mailing list