[vtkusers] Points inside a Cylinder

Chiranjib Sur sur.chiranjib at gmail.com
Tue Dec 6 12:49:15 EST 2016

there is no ready made solution available ( atleast I am not aware of). You
can implement the solution in the following way

1. Consider the cylinder is within a cubic volume for which you know the
2. Generate points of your desired resolution on a 3d grid for the entire
cube (this will be on a regular grid)
3. Consider the boundary condition for cylinder and create an array of
"vtkpoints" after step 2
4. This boundary condition can give you option to create point inside or
outside of your cylinder

Here is an example which you can look   to understand how to determine
inside outside of the closed surface

Hope that helps,

On Tue, Dec 6, 2016 at 10:15 PM, Saeed Bakhshmand <saeedbakhshmand at gmail.com
> wrote:

> Hello,
> 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.
> Best,
> Saeed
> _______________________________________________
> 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
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161206/86c9726f/attachment.html>

More information about the vtkusers mailing list