<div dir="ltr">It will work for 3D meshes, since it uses ray tracing it works well for even concave meshes.<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 9:43 PM, Alex Southern <span dir="ltr">&lt;<a href="mailto:aps@tml.hut.fi">aps@tml.hut.fi</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi<br>
    <br>
    &quot;vtkPolygon-&gt;PointInPolygon()&quot;<br>
    <br>
    Interesting, does this just work for a 2D plane, or will it work for
    a whole volume of polygons?<br>
    <br>
    Thanks<br>
    Alex <br>
    <br>
    On 16/08/2010 14:15, Jothy wrote:
    <blockquote type="cite">
      <div dir="ltr">Can&#39;t vtkPolygon-&gt;PointInPolygon() do this?<br>
        <br>
        Thanks<br>
        <br>
        Jothy<br>
        <br>
        <div class="gmail_quote">On Mon, Aug 16, 2010 at 12:13 PM, Bill
          Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">How is the closed volume of triangles
            created?<br>
            <br>
            On Sun, Aug 15, 2010 at 5:09 PM, Alex Southern &lt;<a href="mailto:aps@tml.hut.fi" target="_blank">aps@tml.hut.fi</a>&gt;
            wrote:<br>
            &gt;  The polydata comes from a closed volume of triangles.<br>
            &gt;<br>
            &gt; BR<br>
            &gt; A.<br>
            &gt;<br>
            &gt; On 16/08/2010 00:06, Bill Lorensen wrote:<br>
            &gt;&gt;<br>
            &gt;&gt; Is the polydata derived from a image/volume?<br>
            &gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt; On Sun, Aug 15, 2010 at 4:54 PM, Alex Southern&lt;<a href="mailto:aps@tml.hut.fi" target="_blank">aps@tml.hut.fi</a>&gt;
             wrote:<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt;  Hi Bill,<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; I&#39;ve thought about it a bit and i&#39;m not quite
            sure what your getting at,<br>
            &gt;&gt;&gt; is<br>
            &gt;&gt;&gt; the answer staring me in the face? :D<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; A.<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; On 15/08/2010 23:45, Bill Lorensen wrote:<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; What is the source of the polydata?<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; This is a trick question...<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; Bill<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; On Sat, Aug 14, 2010 at 7:28 AM, Alex
            Southern&lt;<a href="mailto:aps@tml.hut.fi" target="_blank">aps@tml.hut.fi</a>&gt;  
             wrote:<br>
            &gt;&gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;&gt; Hi,<br>
            &gt;&gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;&gt; I&#39;ve asked a similar question here
            before but Im going to ask it again<br>
            &gt;&gt;&gt;&gt;&gt; slightly differently.<br>
            &gt;&gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;&gt; Using VTK, What is the fastest way to
            find all points in a grid, (or<br>
            &gt;&gt;&gt;&gt;&gt; all<br>
            &gt;&gt;&gt;&gt;&gt; cubes if you think of it a another
            way),  that fit inside an arbitrary<br>
            &gt;&gt;&gt;&gt;&gt; shaped volume of polydata?<br>
            &gt;&gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;&gt; I tried vtkEnclosedPoints, it works but
            its very slow. Someone did<br>
            &gt;&gt;&gt;&gt;&gt; suggest<br>
            &gt;&gt;&gt;&gt;&gt; to me using templates does this ring
            any bells?<br>
            &gt;&gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;&gt; Thanks<br>
            &gt;&gt;&gt;&gt;&gt; Alex<br>
            <div>
              <div>&gt;&gt;&gt;&gt;&gt;
                _______________________________________________<div class="im"><br>
                &gt;&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
                &gt;&gt;&gt;&gt;&gt;<br>
                &gt;&gt;&gt;&gt;&gt; Visit other Kitware open-source
                projects at<br>
                &gt;&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
                &gt;&gt;&gt;&gt;&gt;<br></div>
                &gt;&gt;&gt;&gt;&gt; Please keep messages on-topic and
                check the VTK FAQ at:<br>
                &gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><div class="im"><br>
                &gt;&gt;&gt;&gt;&gt;<br>
                &gt;&gt;&gt;&gt;&gt; Follow this link to
                subscribe/unsubscribe:<br></div>
                &gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
                &gt;&gt;&gt;&gt;&gt;<br>
                &gt;&gt;&gt;
                _______________________________________________<div class="im"><br>
                &gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
                &gt;&gt;&gt;<br>
                &gt;&gt;&gt; Visit other Kitware open-source projects at<br>
                &gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
                &gt;&gt;&gt;<br></div>
                &gt;&gt;&gt; Please keep messages on-topic and check the
                VTK FAQ at:<br>
                &gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><div class="im"><br>
                &gt;&gt;&gt;<br>
                &gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br></div>
                &gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
                &gt;&gt;&gt;<br>
                &gt;<br>
                &gt;<br>
                _______________________________________________<div class="im"><br>
                Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
                <br>
                Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
                <br></div>
                Please keep messages on-topic and check the VTK FAQ at:
                <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><div class="im"><br>
                <br>
                Follow this link to subscribe/unsubscribe:<br>
                </div><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>