| 835 | namespace |
| 836 | { |
| 837 | inline 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 |
| 850 | inline double ComputeLength(vtkIdList* poly, vtkPoints* pts) |
no test coverage detected