[vtkusers] cell belongs to polydata

Jacinto Perez jacintoperez at mail.com
Mon Aug 13 09:13:09 EDT 2012

Thank you George for the response.

 Should it be the centroid? or with the center calculated with http://www.vtk.org/doc/nightly/html/classvtkCellCenters.html  is Ok? (geometric center)
 If not, is there a class that calculate centroid of cell?

 Thank you for the help!
----- Original Message -----
From: George Zagaris
Sent: 07/26/12 02:19 AM
To: Jacinto Perez
Subject: Re: [vtkusers] cell belongs to polydata

 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 >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120813/36b7ee9a/attachment.htm>

More information about the vtkusers mailing list