MCPcopy Create free account
hub / github.com/Kitware/VTK / LastPointIndex

Function LastPointIndex

Filters/ParallelFlowPaths/vtkPStreamTracer.cxx:837–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835namespace
836{
837inline vtkIdType LastPointIndex(vtkPolyData* pathPoly)
838{
839 vtkCellArray* pathCells = pathPoly->GetLines();
840 AssertGt(pathCells->GetNumberOfCells(), 0);
841 const vtkIdType* path(nullptr);
842 vtkIdType nPoints(0);
843 pathCells->InitTraversal();
844 pathCells->GetNextCell(nPoints, path);
845 int lastPointIndex = path[nPoints - 1];
846 return lastPointIndex;
847}
848
849#ifdef DEBUGTRACE
850inline double ComputeLength(vtkIdList* poly, vtkPoints* pts)

Callers 1

TraceOneStepMethod · 0.85

Calls 4

GetLinesMethod · 0.45
GetNumberOfCellsMethod · 0.45
InitTraversalMethod · 0.45
GetNextCellMethod · 0.45

Tested by

no test coverage detected