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

Method AddEntry

Filters/Parallel/vtkPKdTree.cxx:2822–2836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2820 return true;
2821}
2822void vtkPKdTree::AddEntry(int* list, int len, int id)
2823{
2824 int i = 0;
2825
2826 while ((i < len) && (list[i] != -1))
2827 i++;
2828
2829 if (i == len)
2830 return; // error
2831
2832 list[i++] = id;
2833
2834 if (i < len)
2835 list[i] = -1;
2836}
2837#ifdef VTK_USE_64BIT_IDS
2838void vtkPKdTree::AddEntry(vtkIdType* list, int len, vtkIdType id)
2839{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected