[vtkusers] vtkPointLocator seg faults at BuildLocator

Chris Turner cturnercomplex at googlemail.com
Fri Aug 27 16:22:11 EDT 2010


Hi David,

That did it! Now it's working fine. Since I generate those PolyDatas
by myself I'm obviously doing something wrong there - but
vtkCleanPolyData is a quick fix.

Thanks Again!
Chris

On Fri, Aug 27, 2010 at 3:50 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> You could try vtkCleanPolyData
> (http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CleanPolyData) - I
> know it is intended to remove duplicate points, but I feel like it
> also may do what you're asking. Let me know if it doesn't and I'll
> look around more because I swear I've done this...
>
> David
>
>
>
> On Fri, Aug 27, 2010 at 3:46 PM, Chris Turner
> <cturnercomplex at googlemail.com> wrote:
>> So I noticed that my surface model has "too much" Points. (Not
>> every point is used for a cell) Is there a method to remove unused Points
>> or do I have to do it by hand?
>>
>> Because when I do it by my own the BuildLocator method works
>> sometimes. But not every time so there could be an error in my "remove
>> unused points function"...
>>
>> Thanks,
>> Chris
>>
>>
>> On Thu, Aug 26, 2010 at 4:11 PM, Chris Turner
>> <cturnercomplex at googlemail.com> wrote:
>>> Thanks for the conformation put what should I do now?
>>>
>>> On Thu, Aug 26, 2010 at 2:09 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
>>>> On Thu, Aug 26, 2010 at 1:56 PM, Chris Turner
>>>> <cturnercomplex at googlemail.com> wrote:
>>>>> Ah okay - sorry.
>>>>>
>>>>> The example works fine here is the output:
>>>>>
>>>>> ./PointLocatorRadius
>>>>> id of point 0 : 88
>>>>> id of point 1 : 58
>>>>> id of point 2 : 128
>>>>>
>>>>> Please find attached the data set. edit:  I also uploaded it here:
>>>>> http://www.mediafire.com/?vplh42oo31d0sxx because the mailing doesn't
>>>>> accept large mails.
>>>>>
>>>>> Thanks,
>>>>> Chris
>>>>
>>>> Strange - I can confirm that it crashes. I don't know why though,
>>>> sorry! I looked at the data in Paraview and it seems fine. I also
>>>> wrote it to a vtp file from paraview then tried to read it and put it
>>>> into the vtkPointLocator in VTK but it still crashed.
>>>>
>>>> David
>>>>
>>>
>> _______________________________________________
>> 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://www.vtk.org/mailman/listinfo/vtkusers
>>
>



More information about the vtkusers mailing list