You can use vtkDelauney3D to create a volumetric mesh. <br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 3:20 PM, KS Jothybasu <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></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;">Yes, I realized after some google searches on this issue. Is there a way to voxelize the mesh like vtkVoxelModeller or so?<br>
<br>Thanks<br><br>Jothy<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 6:16 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></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;">I don't think there's anything wrong. The sphere has radius of 50 (remember that the sphere is just a surface mesh and not a volumetric mesh) and you're asking to find all points within radius 25 of the center of the sphere which there are none. <br>
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Message: 5<br>
Date: Wed, 27 Jan 2010 17:01:23 +0000<br>
From: KS Jothybasu <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>><br>
Subject: [vtkusers] vtkPointLocator FindPointsWithinRadius Example<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
<<a href="mailto:1dd3c8b21001270901j18d69c07ideeb0fe666216fee@mail.gmail.com" target="_blank">1dd3c8b21001270901j18d69c07ideeb0fe666216fee@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi all,<br>
<br>
Does anyone have an example for vtkPointLocator.FindPointsWithinRadius()<br>
<br>
I am having trouble with it, here is my code<br>
<br>
x=vtk.vtkSphereSource()<br>
x.SetRadius(50)<br>
x.SetPhiResolution(50)<br>
x.SetThetaResolution(50)<br>
x.Update()<br>
<br>
<br>
<br>
result=vtk.vtkIdList()<br>
Loc=vtk.vtkPointLocator()<br>
Loc.SetDataSet(x.GetOutput())<br>
Loc.FindPointsWithinRadius(25,[0,0,0],result)<br>
<br>
prints<br>
result None<br>
<br>
Any hint?<br>
<br>
I think using this vtkFindLocator/KDTree there should be some method to get<br>
the points inside a polygon of any shape?<br>
<br>
Thanks<br>
<br>
Jothy<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20100127/cdc10261/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20100127/cdc10261/attachment-0001.htm</a>><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>