<div dir="ltr">Hi everyone,<div><br></div><div style>I&#39;m using vtkDijkstraGraphGeodesicPath to compute the geodesic distance from a vertex &quot;i&quot; in a mesh to all the remaining vertices. Here&#39;s a snippet of the python implementation:</div>
<div style><br></div><div style><div>nverts = surface.GetNumberOfPoints()<br></div><div>dijkstra = vtk.vtkDijkstraGraphGeodesicPath()</div><div>dijkstra.SetInput(surface)</div><div><div>for i in range(nverts):</div><div><span class="" style="white-space:pre">        </span>dijkstra.SetStartVertex(n)<br>
</div><div><span class="" style="white-space:pre">        </span>dijkstra.Update()</div><div><br></div><div><span class="" style="white-space:pre">        </span># Array of geodesic distances from vertex i to all the vertices in the mesh</div>
<div><span class="" style="white-space:pre">        </span>weights = vtk.vtkDoubleArray()</div><div><span class="" style="white-space:pre">        </span>dijkstra.GetCumulativeWeights(weights)</div></div><div><br></div><div style>however, when calling the method Update() from &quot;dijkstra&quot; I&#39;m getting a &quot;Segmentation fault&quot; error for i=3175.</div>
<div style><br></div><div style>My &quot;surface&quot; (with 29752 vertices and 59508 cells) does not have repeated/unused points and all cells are made up of triangles.</div><div style><br></div><div style>Anyone has any clue about why I&#39;m getting this Segmentation fault?</div>
<div style><br></div><div style>Thanks,</div><div style>Miguel</div><div><br></div></div></div>