[vtkusers] Segmentation Fault in vtkPointLocator::BuildLocator
Jean-Marie Normand
normand at lina.univ-nantes.fr
Thu Oct 21 12:06:42 EDT 2004
Hi,
I've just added in my code a new class that uses vtkPointLocator, the
compilation step is ok, but at runtime I get a segmentation fault:
#0 0x008ef798 in vtkPointLocator::BuildLocator () from
/usr/local/lib/vtk/libvtkCommon.so
This is the part of code where it crashes:
locator = vtkPointLocator::New();
this->locator->SetDataSet( this->input );
this->locator->AutomaticOff();
this->locator->SetMaxLevel( 5 );
this->locator->BuildLocator(); //! Here is the seg fault
where this->input is a vtkPolyData* obtained via a vtkAppendPolyData. It
seems that the crash may be linked with the input.
But one thing is when I try to check the number of vertices of my
vtkPolyData (by calling appUnClipped->GetOutput()->GetNumberOfPoints()
appUnClipped being a vtkAppendPolyData) I get 0 as an answer, whereas
when I declare a mapper, an actor and that I render the actor, I see the
right surface. Is this normal ?
Has anyone got a clue ?
Thanks in advance.
Jim
More information about the vtkusers
mailing list