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

Method HasBlockConnection

Filters/Geometry/vtkStructuredGridConnectivity.h:884–898  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

882
883//------------------------------------------------------------------------------
884inline bool vtkStructuredGridConnectivity::HasBlockConnection(int gridID, int blockDirection)
885{
886 // Sanity check
887 assert("pre: gridID is out-of-bounds" && (gridID >= 0) &&
888 (gridID < static_cast<int>(this->NumberOfGrids)));
889 assert("pre: BlockTopology has not been properly allocated" &&
890 (this->NumberOfGrids == this->BlockTopology.size()));
891 assert("pre: blockDirection is out-of-bounds" && (blockDirection >= 0) && (blockDirection < 6));
892 bool status = false;
893 if (this->BlockTopology[gridID] & (1 << blockDirection))
894 {
895 status = true;
896 }
897 return (status);
898}
899
900//------------------------------------------------------------------------------
901inline void vtkStructuredGridConnectivity::RemoveBlockConnection(int gridID, int blockDirection)

Callers 8

PrintSelfMethod · 0.95
GetRealExtentMethod · 0.95
PrintSelfMethod · 0.80
CreateGhostedExtentMethod · 0.80

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected