I am able to compute the centerlines using VMTK from pypad, however when I try with the c++ program I get the following errors at centerlineFilter->Update();
Generic Warning: In ..\..\VTK-src\Common\vtkMath.cxx, line 522
Unable to factor linear system
Warning: In ..\..\VTK-src\Graphics\vtkDelaunay3D.cxx, line 487
vtkDelaunay3D (174D2480): 3562 degenerate triangles encountered, mesh quality suspect
ERROR: In ..\..\VMTK-src\ComputationalGeometry\vtkvmtkSteepestDescentLineTracer.cxx, line 338
vtkvmtkSteepestDescentLineTracer (2CDB8700): Seed id invalid or exceeds input number of points.
First-chance exception at 0x0f5aae07 (vtkCommon.dll) in vmtkcenterline.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x0f5aae07 (vtkCommon.dll) in vmtkcenterline.exe: 0xC0000005: Access violation reading location 0x00000000.
I am using vtkPointLocator to find the pointIDs for the starting and ending points. Is this function returning invalid ids?