[vtkusers] vtkPointLocator seg faults at BuildLocator
Chris Turner
cturnercomplex at googlemail.com
Thu Aug 26 11:51:29 EDT 2010
Hi Everyone,
when I try to use the vtkPointLocator on a vtkPolyData my program seg
faults when ever I call BuildLocator:
Here is the code:
pd=vtk.vtkPolyData()
pd.DeepCopy(polyData_org)
pointLocator=vtk.vtkPointLocator()
pointLocator.SetDataSet(pd)
print "before BuildLocator"
sys.stdout.flush()
pointLocator.BuildLocator()
print "after BuildLocator"
sys.stdout.flush()
id = pointLocator.FindClosestPoint(pt[0],pt[1],pt[2])
Here is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007f21ab328c40 in vtkIdList::InsertNextId (this=0x40011,
vtkid=33286) at /VTK/Common/vtkIdList.h:122
122 if ( this->NumberOfIds >= this->Size )
(gdb) bt
#0 0x00007f21ab328c40 in vtkIdList::InsertNextId (this=0x40011,
vtkid=33286) at /VTK/Common/vtkIdList.h:122
#1 0x00007f21a5b47cf6 in vtkPointLocator::BuildLocator
(this=0xc1ac470) at /VTK/Filtering/vtkPointLocator.cxx:1013
#2 0x00007f21a67ca7c8 in vtkPointLocatorCppCommand (op=0xc1ac470,
interp=0x15eb9b0, argc=2, argv=0x7fff2a29f410)
Anybody an idea?
Thanks,
Chris
More information about the vtkusers
mailing list