<div dir="ltr">Saeed,<div>there is no ready made solution available ( atleast I am not aware of). You can implement the solution in the following way</div><div><br></div><div>1. Consider the cylinder is within a cubic volume for which you know the bounds</div><div>2. Generate points of your desired resolution on a 3d grid for the entire cube (this will be on a regular grid)</div><div>3. Consider the boundary condition for cylinder and create an array of "vtkpoints" after step 2</div><div>4. This boundary condition can give you option to create point inside or outside of your cylinder</div><div><br></div><div>Here is an example which you can look   to understand how to determine inside outside of the closed surface</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject</a><br></div><div><br></div><div>Hope that helps,</div><div>Chiranjib</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 10:15 PM, Saeed Bakhshmand <span dir="ltr"><<a href="mailto:saeedbakhshmand@gmail.com" target="_blank">saeedbakhshmand@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am trying to generate a list of points that lay inside an object (such as cylinder) and have no success finding the right method and would appreciate any hints.</div><div><br></div><div>Best,</div><div>Saeed</div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>