[vtkusers] vtk - PointInsideObject - is the problem is due to precision?

Chiranjib Sur sur.chiranjib at gmail.com
Fri Jan 20 06:14:13 EST 2017


HI Andrea,
Thanks for the quick and effective reply. By default the tolerance is set
to =.001 and I tried with different values and by using the tolerance value
= 0.0001, I get a much cleaner data that I am looking for. IT looks like
this now

[image: Inline image 1]
Thanks much for your help :)

Thanks and regards,
Chiranjib

On Fri, Jan 20, 2017 at 2:19 PM, Andrea Borsic <aborsic at ne-scientific.com>
wrote:

> Hi Chiranjib,
>
> Have you tried reducing the spatial tolerance with the method
> SetTolerance() of vtkSelectEnclosedPoints() ?
>
> I have experienced a similar situation, and setting an appropriate
> tolerance (e.g. a small fraction of the size of the object) solved the
> problem.
>
> Cheers,
>
> Andrea
>
>
>
>
> On 1/20/2017 8:27 AM, Chiranjib Sur wrote:
>
> Hi All,
> I am trying to extend the example to find points inside an object (
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject). The
> idea is to fill a 3D volume with points inside it.
>
> While doing so, I am finding that for some points which are actually
> outside the object are getting detected as inside.
> To picture on the left is my original object and on the right is the
> object filled with points
>
> [image: Inline image 1]        [image: Inline image 2]
>
> You will find that few points which are actually outside are getting
> detected as inside.
>
> Any idea what is happening? The object file and the source codes are
> attached.
>
> Thanks,
> Chiranjib
>
>
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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/20170120/5d1d6560/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 20931 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170120/5d1d6560/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 314490 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170120/5d1d6560/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 317143 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170120/5d1d6560/attachment-0005.png>


More information about the vtkusers mailing list