[vtkusers] Get all integer points inside polydata.

superzz jxdw_zlf at yahoo.com.cn
Thu Mar 25 08:22:28 EDT 2010


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.




More information about the vtkusers mailing list