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

Method NewGeometry

Common/DataModel/vtkKdTree.cxx:2870–2888  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2868
2869//------------------------------------------------------------------------------
2870int vtkKdTree::NewGeometry()
2871{
2872 if (this->GetNumberOfDataSets() != this->LastNumDataSets)
2873 {
2874 return 1;
2875 }
2876
2877 vtkDataSet** tmp = new vtkDataSet*[this->GetNumberOfDataSets()];
2878 for (int i = 0; i < this->GetNumberOfDataSets(); i++)
2879 {
2880 tmp[i] = this->GetDataSet(i);
2881 }
2882
2883 int itsNew = this->NewGeometry(tmp, this->GetNumberOfDataSets());
2884
2885 delete[] tmp;
2886
2887 return itsNew;
2888}
2889
2890//------------------------------------------------------------------------------
2891int vtkKdTree::NewGeometry(vtkDataSet** sets, int numSets)

Callers 3

BuildLocatorMethod · 0.95
BuildLocatorInternalMethod · 0.95
BuildLocatorMethod · 0.45

Calls 15

GetNumberOfDataSetsMethod · 0.95
GetDataSetMethod · 0.95
CheckInputDataInfoMethod · 0.95
GetDataObjectTypeMethod · 0.80
GetPointGhostArrayMethod · 0.80
GetCellGhostArrayMethod · 0.80
GetMTimeMethod · 0.45
GetPointsMethod · 0.45
GetNumberOfPointsMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetBoundsMethod · 0.45
GetXCoordinatesMethod · 0.45

Tested by

no test coverage detected