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

Method SetBlockTopology

Filters/Geometry/vtkStructuredGridConnectivity.cxx:799–839  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

797
798//------------------------------------------------------------------------------
799void vtkStructuredGridConnectivity::SetBlockTopology(int gridID)
800{
801 int gridExtent[6];
802 this->GetGridExtent(gridID, gridExtent);
803
804 // Check in IMIN
805 if (gridExtent[0] > this->WholeExtent[0])
806 {
807 this->AddBlockConnection(gridID, BlockFace::LEFT);
808 }
809
810 // Check in IMAX
811 if (gridExtent[1] < this->WholeExtent[1])
812 {
813 this->AddBlockConnection(gridID, BlockFace::RIGHT);
814 }
815
816 // Check in JMIN
817 if (gridExtent[2] > this->WholeExtent[2])
818 {
819 this->AddBlockConnection(gridID, BlockFace::BOTTOM);
820 }
821
822 // Check in JMAX
823 if (gridExtent[3] < this->WholeExtent[3])
824 {
825 this->AddBlockConnection(gridID, BlockFace::TOP);
826 }
827
828 // Check in KMIN
829 if (gridExtent[4] > this->WholeExtent[4])
830 {
831 this->AddBlockConnection(gridID, BlockFace::BACK);
832 }
833
834 // Check in KMAX
835 if (gridExtent[5] < this->WholeExtent[5])
836 {
837 this->AddBlockConnection(gridID, BlockFace::FRONT);
838 }
839}
840
841//------------------------------------------------------------------------------
842void vtkStructuredGridConnectivity::SetNeighbors(

Callers 1

ComputeNeighborsMethod · 0.95

Calls 2

GetGridExtentMethod · 0.95
AddBlockConnectionMethod · 0.95

Tested by

no test coverage detected