------------------------------------------------------------------------------
| 882 | |
| 883 | //------------------------------------------------------------------------------ |
| 884 | inline 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 | //------------------------------------------------------------------------------ |
| 901 | inline void vtkStructuredGridConnectivity::RemoveBlockConnection(int gridID, int blockDirection) |
no test coverage detected