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

Method AddAllPointsInRegion

Common/DataModel/vtkOctreePointLocator.cxx:1249–1259  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1247
1248//------------------------------------------------------------------------------
1249void vtkOctreePointLocator::AddAllPointsInRegion(
1250 vtkOctreePointLocatorNode* node, vtkIdTypeArray* ids)
1251{
1252 int regionLoc = node->GetMinID();
1253 vtkIdType numPoints = node->GetNumberOfPoints();
1254 for (vtkIdType i = 0; i < numPoints; i++)
1255 {
1256 vtkIdType ptId = static_cast<vtkIdType>(this->LocatorIds[regionLoc + i]);
1257 ids->InsertNextValue(ptId);
1258 }
1259}
1260
1261//------------------------------------------------------------------------------
1262void vtkOctreePointLocator::AddAllPointsInRegion(vtkOctreePointLocatorNode* node, vtkIdList* ids)

Callers 2

FindPointsInAreaMethod · 0.95

Calls 3

InsertNextIdMethod · 0.80
GetNumberOfPointsMethod · 0.45
InsertNextValueMethod · 0.45

Tested by

no test coverage detected