[vtkusers] vtk - PointInsideObject - is the problem is due to precision?
Andrea Borsic
aborsic at ne-scientific.com
Fri Jan 20 03:49:22 EST 2017
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
> <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
>
> Inline image 1 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170120/a5a85c86/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/a5a85c86/attachment-0002.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/a5a85c86/attachment-0003.png>
More information about the vtkusers
mailing list