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

Method AddBlockConnection

Filters/Geometry/vtkStructuredGridConnectivity.h:914–923  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

912
913//------------------------------------------------------------------------------
914inline void vtkStructuredGridConnectivity::AddBlockConnection(int gridID, int blockDirection)
915{
916 // Sanity check
917 assert("pre: gridID is out-of-bounds" && (gridID >= 0) &&
918 (gridID < static_cast<int>(this->NumberOfGrids)));
919 assert("pre: BlockTopology has not been properly allocated" &&
920 (this->NumberOfGrids == this->BlockTopology.size()));
921 assert("pre: blockDirection is out-of-bounds" && (blockDirection >= 0) && (blockDirection < 6));
922 this->BlockTopology[gridID] |= (1 << blockDirection);
923}
924
925//------------------------------------------------------------------------------
926inline void vtkStructuredGridConnectivity::ClearBlockConnections(int gridID)

Callers 1

SetBlockTopologyMethod · 0.95

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected