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

Method CheckInputDataInfo

Common/DataModel/vtkKdTree.cxx:2848–2867  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2846
2847//------------------------------------------------------------------------------
2848int vtkKdTree::CheckInputDataInfo(int i, int dims[3], double origin[3], double spacing[3])
2849{
2850 int sameValues = 1;
2851 int idx = 9 * i;
2852
2853 if ((dims[0] != static_cast<int>(this->LastInputDataInfo[idx])) ||
2854 (dims[1] != static_cast<int>(this->LastInputDataInfo[idx + 1])) ||
2855 (dims[2] != static_cast<int>(this->LastInputDataInfo[idx + 2])) ||
2856 (origin[0] != this->LastInputDataInfo[idx + 3]) ||
2857 (origin[1] != this->LastInputDataInfo[idx + 4]) ||
2858 (origin[2] != this->LastInputDataInfo[idx + 5]) ||
2859 (spacing[0] != this->LastInputDataInfo[idx + 6]) ||
2860 (spacing[1] != this->LastInputDataInfo[idx + 7]) ||
2861 (spacing[2] != this->LastInputDataInfo[idx + 8]))
2862 {
2863 sameValues = 0;
2864 }
2865
2866 return sameValues;
2867}
2868
2869//------------------------------------------------------------------------------
2870int vtkKdTree::NewGeometry()

Callers 1

NewGeometryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected