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

Method AddBlockConnection

Filters/Geometry/vtkStructuredAMRGridConnectivity.h:592–601  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

590
591//------------------------------------------------------------------------------
592inline void vtkStructuredAMRGridConnectivity::AddBlockConnection(int gridID, int blockDirection)
593{
594 // Sanity check
595 assert("pre: gridID is out-of-bounds" && (gridID >= 0) &&
596 (gridID < static_cast<int>(this->NumberOfGrids)));
597 assert("pre: BlockTopology has not been properly allocated" &&
598 (this->NumberOfGrids == this->BlockTopology.size()));
599 assert("pre: blockDirection is out-of-bounds" && (blockDirection >= 0) && (blockDirection < 6));
600 this->BlockTopology[gridID] |= (1 << blockDirection);
601}
602
603//------------------------------------------------------------------------------
604inline void vtkStructuredAMRGridConnectivity::ClearBlockConnections(int gridID)

Callers 1

SetBlockTopologyMethod · 0.95

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected