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

Method RegisterGridNodes

Filters/Geometry/vtkAbstractGridConnectivity.h:462–481  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

460
461//------------------------------------------------------------------------------
462inline 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
483VTK_ABI_NAMESPACE_END
484#endif /* vtkAbstractGridConnectivity_h */

Callers 2

RegisterGridMethod · 0.80
RegisterGridMethod · 0.80

Calls 4

assertFunction · 0.50
NewFunction · 0.50
sizeMethod · 0.45
ShallowCopyMethod · 0.45

Tested by

no test coverage detected