<div dir="ltr">Hello,<div><br></div><div style>I forgot to add that I am using self compiled version of vtk 5.10.1 source code on a Linux 64 bit with Fedora 17. </div><div style><br></div><div style>Thanks in advance,</div>
<div style>Cheers,</div><div style>Gudni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 22, 2013 at 6:47 PM, Guðni Karl Rosenkjær <span dir="ltr"><<a href="mailto:grosenkj@eos.ubc.ca" target="_blank">grosenkj@eos.ubc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr">Hello all,<br><div class="gmail_quote"><div dir="ltr"><div><br></div>
<div>I have a problem where I want to find cells in a rectilinear grid that are within a unstructured grid. The unstructured grid has only 1 cell that is a polyhedron (types=42). </div>
<div><br></div><div>I have written up a python script (testCellLocator.py in the attachment) where I use vtkCellLoctor.FindCell embedded in a if statement to check if the cell centers are in the polyhedron. I am not sure if this is the best way to do this. However I have gotten the script to work, except there are cells that are incorrectly determined inside and outside the polyhedron (in pvScreenShot.png). It is clear that some of the cells are outside the polyhedron cell and there are cells missing from within it. </div>
<div><br></div><div>The questions that I have are: </div><div>Is using the vtkCellLoctor.FindCell best way locate points with in the polyhedron cell?</div><div>Using the vtkCellLoctor.FindCell method, what could be the reason for the error in locating the cells?</div>
<div><br></div><div>Thank you very much in advance.</div><div><br></div><div>Cheers,</div><div>Gudni</div><div><br></div><div><br></div></div>
</div><br></div>
</div></div></blockquote></div><br></div>