<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Chiranjib,</p>
<p>Have you tried reducing the spatial tolerance with the method
SetTolerance() of vtkSelectEnclosedPoints() ?</p>
<p>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.</p>
<p>Cheers,</p>
<p>Andrea<br>
</p>
<p><br>
</p>
<p><br>
<span style="color: rgb(0, 0, 0); font-family: Roboto, sans-serif;
font-size: 21px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: bold;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(249, 250, 252); display: inline
!important; float: none;"></span></p>
<br>
<div class="moz-cite-prefix">On 1/20/2017 8:27 AM, Chiranjib Sur
wrote:<br>
</div>
<blockquote
cite="mid:CAJk8dSD1LovrtP3EMiSajCJz_nHmDvnivwAEjdScUinC36j5Pw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div>I am trying to extend the example to find points inside an
object (<a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject"
target="_blank">http://www.vtk.org/Wiki/VTK/<wbr>Examples/Cxx/PolyData/<wbr>PointInsideObject</a>).
The idea is to fill a 3D volume with points inside it.</div>
<div><br>
</div>
<div>While doing so, I am finding that for some points which are
actually outside the object are getting detected as inside. </div>
<div>To picture on the left is my original object and on the
right is the object filled with points</div>
<div><br>
</div>
<div><img src="cid:part2.AAC73255.92E9FA3A@ne-scientific.com"
alt="Inline image 1" style="margin-right:0px" height="228"
width="208"> <img
src="cid:part3.052A8B3D.41DEA72C@ne-scientific.com"
alt="Inline image 2" style="margin-right:0px" height="224"
width="219"><br>
</div>
<div><br>
</div>
<div>You will find that few points which are actually outside
are getting detected as inside. </div>
<div><br>
</div>
<div>Any idea what is happening? The object file and the source
codes are attached.<br>
<br>
</div>
<div>Thanks,<br>
</div>
<div>Chiranjib<br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>