------------------------------------------------------------------------------
| 460 | |
| 461 | //------------------------------------------------------------------------------ |
| 462 | inline void vtkAbstractGridConnectivity::RegisterGridNodes(int gridID, vtkPoints* nodes) |
| 463 | { |
| 464 | // Sanity check |
| 465 | assert("pre: GridID is out-of-bound GridPointData" && (gridID >= 0) && |
| 466 | (gridID < static_cast<int>(this->NumberOfGrids))); |
| 467 | assert( |
| 468 | "pre: GridPoints has not been allocated!" && (this->GridPoints.size() == this->NumberOfGrids)); |
| 469 | |
| 470 | if (nodes != nullptr) |
| 471 | { |
| 472 | assert("pre:GridPoints[gridID] must be nullptr" && this->GridPoints[gridID] == nullptr); |
| 473 | this->GridPoints[gridID] = vtkPoints::New(); |
| 474 | this->GridPoints[gridID]->SetDataTypeToDouble(); |
| 475 | this->GridPoints[gridID]->ShallowCopy(nodes); |
| 476 | } |
| 477 | else |
| 478 | { |
| 479 | this->GridPoints[gridID] = nullptr; |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | VTK_ABI_NAMESPACE_END |
| 484 | #endif /* vtkAbstractGridConnectivity_h */ |
no test coverage detected