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

Method InsertUniquePoint

Common/DataModel/vtkPointLocator.cxx:1295–1311  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1293
1294//------------------------------------------------------------------------------
1295int vtkPointLocator::InsertUniquePoint(const double x[3], vtkIdType& id)
1296{
1297 vtkIdType ptId;
1298
1299 ptId = this->IsInsertedPoint(x);
1300
1301 if (ptId > -1)
1302 {
1303 id = ptId;
1304 return 0;
1305 }
1306 else
1307 {
1308 id = this->InsertNextPoint(x);
1309 return 1;
1310 }
1311}
1312
1313//------------------------------------------------------------------------------
1314// Given a position x, return the id of the point closest to it. This method

Callers

nothing calls this directly

Calls 2

IsInsertedPointMethod · 0.95
InsertNextPointMethod · 0.95

Tested by

no test coverage detected