<br>I used vtkPolygon::PointInPolygon before, it is not bad.<br><br><div class="gmail_quote">On Thu, Mar 25, 2010 at 8:22 AM, superzz <span dir="ltr">&lt;<a href="mailto:jxdw_zlf@yahoo.com.cn">jxdw_zlf@yahoo.com.cn</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello<br>
<br>
Given a polydata, is there a quick way to get all points with integer x,y,z<br>
coordinate inside it? I know empolying vtkOBBTree with the following code<br>
can do this. But it runs toooooo slow.<br>
<br>
for (int x = 0 ; x &lt; maxX; ++ x){<br>
  for (int y = 0 ; y &lt; maxY; ++ y){<br>
    for (int z = 0 ; z &lt; maxZ; ++ z){<br>
       obbTree.InsideOrOutside(new double[] { x, y, z });<br>
    }<br>
  }<br>
}<br>
<br>
Thanks<br>
<br>
superZZ<br>
<font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/Get-all-integer-points-inside-polydata.-tp28028089p28028089.html" target="_blank">http://old.nabble.com/Get-all-integer-points-inside-polydata.-tp28028089p28028089.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<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>
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><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<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>