[vtkusers] Get all integer points inside polydata.
MURAT AYDIN
murat.aydin at netcad.com.tr
Thu Mar 25 08:23:55 EDT 2010
Hi,
I dont know its performance but you can try vtkSelectEnclosedPoints.
Regards
murat
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of superzz
Sent: Thursday, March 25, 2010 2:22 PM
To: vtkusers at vtk.org
Subject: [vtkusers] Get all integer points inside polydata.
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
More information about the vtkusers
mailing list