[vtkusers] cell belongs to polydata
George Zagaris
george.zagaris at kitware.com
Wed Jul 25 20:19:21 EDT 2012
One way is to compute the cell centroid, C_i, for each cell and call
FindCell on the other polydata. See for example, vtkDataSet::FindCell.
FindCell will return a cellid >= 0 if inside, or < 0 otherwise.
On Wed, Jul 25, 2012 at 10:15 AM, Jacinto Perez <jacintoperez at mail.com> wrote:
> Hello,
>
> I have 2 polydatas . One is a subset of the other one.
> I am traversing the biggest one and I want to check if the current cell of
> the traversal belongs to the smaller one to.
>
> Is there a methond provided by vtk to do this?
> Or how can I make it?
>
> Thank you!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list