<div dir="ltr"><div><div>Bill,<br></div>Thanks a lot. I get consistent output by setting tolerance to 0.000001. <br>Thanks for your time and help.<br></div>-Santosh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 5:08 PM, Bill Lorensen [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5728673&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Santosh,
<br><br>The default tolerance for ray-cell intersection is too large for your
<br>dataset. The selection algorithm shoots random rays from the test
<br>point through the surface. Since each call to Update generates
<br>different random rays, you see varying results. Decrease the tolearce
<br>and you will get consistent results.
<br><br>The default tolerate is .001. Try .00001 with your data:
<br>filter.SetTolerance(.00001)
<br><br></span>Bill
<br><span class=""><br>On Wed, Sep 10, 2014 at 11:50 AM, santosh <<a href="http://user/SendEmail.jtp?type=node&node=5728671&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
</span><div><br>> Hi Bill,
<br><span class="">> Thanks for trying out my code. As you notice, there is inconsistency in the
<br>> output. Eagerly waiting for your fix to this issue.
<br>> Santosh
<br>>
<br></span>> On Wed, Sep 10, 2014 at 8:20 PM, Bill Lorensen [via VTK] <[hidden email]>
<br><div><div class="h5">> wrote:
<div class='shrinkable-quote'><br>>>
<br>>> I can reproduce the problem with your script. There is something funny
<br>>> about the repeated calls to getPolydata. If you move that call outside
<br>>> the loop, it works. However, if you do
<br>>> filter.Modified() in the loop the error returns. Looks like a bug.
<br>>> I'll try to track it down.
<br>>>
<br>>> Bill
<br>>>
<br>>> On Wed, Sep 10, 2014 at 8:29 AM, santosh <[hidden email]> wrote:
<br>>>
<br>>> > Hi Bill,
<br>>> > I have uploaded my Python code.
<br>>> > check_point_loc.py
<br>>> > <<a href="http://vtk.1045678.n5.nabble.com/file/n5728654/check_point_loc.py" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5728654/check_point_loc.py</a>>
<br>>>
<br>>> > Thanks,
<br>>> > Santosh
<br>>> >
<br>>> >
<br>>> >
<br>>> > --
<br>>> > View this message in context:
<br>>> > <a href="http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728654.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728654.html</a><br>>> > Sent from the VTK - Users mailing list archive at Nabble.com.
<br>>> > _______________________________________________
<br>>> > Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>> >
<br>>> > Visit other Kitware open-source projects at
<br>>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>> >
<br>>> > Please keep messages on-topic and check the VTK FAQ at:
<br>>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>> >
<br>>> > Follow this link to subscribe/unsubscribe:
<br>>> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>>>
<br>>>
<br>>> --
<br>>> Unpaid intern in BillsBasement at noware dot com
<br>>> _______________________________________________
<br>>> Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>>
<br>>> Visit other Kitware open-source projects at
<br>>> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>>
<br>>> Please keep messages on-topic and check the VTK FAQ at:
<br>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>>
<br>>> Follow this link to subscribe/unsubscribe:
<br>>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>>>
<br>>>
<br>>> ________________________________
<br>>> If you reply to this email, your message will be added to the discussion
<br>>> below:
<br>>>
<br>>> <a href="http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728661.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728661.html</a><br>>> To unsubscribe from vtkSelectEnclosedPoints filter inconsistent output of
<br>>> IsInside method, click here.
<br>>> NAML
<br>>
<br>>
<br>>
</div></div></div>> ________________________________
<br>> View this message in context: Re: vtkSelectEnclosedPoints filter
<br><span class="">> inconsistent output of IsInside method
<br></span><span class="">> Sent from the VTK - Users mailing list archive at Nabble.com.
<div class='shrinkable-quote'><br>>
<br>> _______________________________________________
<br>> Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>
<br>> Visit other Kitware open-source projects at
<br>> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>
<br>> Please keep messages on-topic and check the VTK FAQ at:
<br>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>>
</span></div><span class=""></div><br><br>--
<br>Unpaid intern in BillsBasement at noware dot com
<br>_______________________________________________
<br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
<br>
<hr color="#cccccc" noshade size="1">
</span><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</span><a href="http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728671.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728671.html</a>
</div><div class="HOEnZb"><div class="h5">
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from vtkSelectEnclosedPoints filter inconsistent output of IsInside method, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728673.html">Re: vtkSelectEnclosedPoints filter inconsistent output of IsInside method</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>