[vtkusers] Get all integer points inside polydata.

siqi chen siqichensc at gmail.com
Thu Mar 25 10:22:35 EDT 2010


I used vtkPolygon::PointInPolygon before, it is not bad.

On Thu, Mar 25, 2010 at 8:22 AM, superzz <jxdw_zlf at yahoo.com.cn> wrote:

>
> Hello
>
> Given a polydata, is there a quick way to get all points with integer x,y,z
> coordinate inside it? I know empolying vtkOBBTree with the following code
> can do this. But it runs toooooo slow.
>
> for (int x = 0 ; x < maxX; ++ x){
>  for (int y = 0 ; y < maxY; ++ y){
>    for (int z = 0 ; z < maxZ; ++ z){
>       obbTree.InsideOrOutside(new double[] { x, y, z });
>    }
>  }
> }
>
> Thanks
>
> superZZ
> --
> View this message in context:
> http://old.nabble.com/Get-all-integer-points-inside-polydata.-tp28028089p28028089.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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/20100325/67e4b968/attachment.htm>


More information about the vtkusers mailing list