[vtkusers] vtkSelectEnclosedPoints filter inconsistent output of IsInside method
Bill Lorensen
bill.lorensen at gmail.com
Thu Sep 11 07:37:28 EDT 2014
Santosh,
The default tolerance for ray-cell intersection is too large for your
dataset. The selection algorithm shoots random rays from the test
point through the surface. Since each call to Update generates
different random rays, you see varying results. Decrease the tolearce
and you will get consistent results.
The default tolerate is .001. Try .00001 with your data:
filter.SetTolerance(.00001)
Bill
On Wed, Sep 10, 2014 at 11:50 AM, santosh <scbiradar at gmail.com> wrote:
> Hi Bill,
> Thanks for trying out my code. As you notice, there is inconsistency in the
> output. Eagerly waiting for your fix to this issue.
> Santosh
>
> On Wed, Sep 10, 2014 at 8:20 PM, Bill Lorensen [via VTK] <[hidden email]>
> wrote:
>>
>> I can reproduce the problem with your script. There is something funny
>> about the repeated calls to getPolydata. If you move that call outside
>> the loop, it works. However, if you do
>> filter.Modified() in the loop the error returns. Looks like a bug.
>> I'll try to track it down.
>>
>> Bill
>>
>> On Wed, Sep 10, 2014 at 8:29 AM, santosh <[hidden email]> wrote:
>>
>> > Hi Bill,
>> > I have uploaded my Python code.
>> > check_point_loc.py
>> > <http://vtk.1045678.n5.nabble.com/file/n5728654/check_point_loc.py>
>>
>> > Thanks,
>> > Santosh
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728654.html
>> > Sent from the VTK - Users mailing list archive at Nabble.com.
>> > _______________________________________________
>> > 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
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-filter-inconsistent-output-of-IsInside-method-tp5728587p5728661.html
>> To unsubscribe from vtkSelectEnclosedPoints filter inconsistent output of
>> IsInside method, click here.
>> NAML
>
>
>
> ________________________________
> View this message in context: Re: vtkSelectEnclosedPoints filter
> inconsistent output of IsInside method
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the vtkusers
mailing list