<span style='font-family:Verdana'><span style='font-size:12px'><span style="font-family: arial; font-size: small; ">Thank you George for the response.</span>
<div style="font-family: arial; font-size: small; ">
         </div>
<div style="font-family: arial; font-size: small; ">
        Should it be the centroid? or with the center calculated with <a href="http://www.vtk.org/doc/nightly/html/classvtkCellCenters.html">http://www.vtk.org/doc/nightly/html/classvtkCellCenters.html</a> is Ok? (geometric center)</div>
<div style="font-family: arial; font-size: small; ">
        If not, is there a class that calculate centroid of cell?</div>
<div style="font-family: arial; font-size: small; ">
         </div>
<div style="font-family: arial; font-size: small; ">
        Thank you for the help!</div>
<div style="font-family: arial; font-size: small; ">
         </div>
<br />
<p style="margin:0px; padding:0px;" >
         </p>
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite">
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">From: George Zagaris</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 07/26/12 02:19 AM</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">To: Jacinto Perez</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [vtkusers] cell belongs to polydata</span></span></p>
        <br />
        <div>
                <div>
                        <pre style="white-space: pre-wrap; word-wrap: break-word; font-size:11;pre">
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@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
></pre>
                </div>
        </div>
</blockquote>
<p style="margin:0px; padding:0px;" >
         </p>
</span></span>