[vtkusers] Points inside a Cylinder
saeedbakhshmand at gmail.com
Tue Dec 6 13:14:45 EST 2016
I was trying to avoid an implementation as you described, also boundary
condition for a constrained cylinder mathematically is not straightforward.
I will keep you posted once I solve this.
On Tue, Dec 6, 2016 at 12:49 PM, Chiranjib Sur <sur.chiranjib at gmail.com>
> 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:
>> 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.
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers