------------------------------------------------------------------------------
| 730 | |
| 731 | //------------------------------------------------------------------------------ |
| 732 | inline bool vtkStructuredGridConnectivity::IsNodeInterior(int i, int j, int k, int GridExtent[6]) |
| 733 | { |
| 734 | bool status = false; |
| 735 | |
| 736 | switch (this->DataDescription) |
| 737 | { |
| 738 | case vtkStructuredData::VTK_STRUCTURED_X_LINE: |
| 739 | if ((GridExtent[0] < i) && (i < GridExtent[1])) |
| 740 | { |
| 741 | status = true; |
| 742 | } |
| 743 | break; |
| 744 | case vtkStructuredData::VTK_STRUCTURED_Y_LINE: |
| 745 | if ((GridExtent[2] < j) && (j < GridExtent[3])) |
| 746 | { |
| 747 | status = true; |
| 748 | } |
| 749 | break; |
| 750 | case vtkStructuredData::VTK_STRUCTURED_Z_LINE: |
| 751 | if ((GridExtent[4] < k) && (k < GridExtent[5])) |
| 752 | { |
| 753 | status = true; |
| 754 | } |
| 755 | break; |
| 756 | case vtkStructuredData::VTK_STRUCTURED_XY_PLANE: |
| 757 | if ((GridExtent[0] < i) && (i < GridExtent[1]) && (GridExtent[2] < j) && (j < GridExtent[3])) |
| 758 | { |
| 759 | status = true; |
| 760 | } |
| 761 | break; |
| 762 | case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE: |
| 763 | if ((GridExtent[2] < j) && (j < GridExtent[3]) && (GridExtent[4] < k) && (k < GridExtent[5])) |
| 764 | { |
| 765 | status = true; |
| 766 | } |
| 767 | break; |
| 768 | case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE: |
| 769 | if ((GridExtent[0] < i) && (i < GridExtent[1]) && (GridExtent[4] < k) && (k < GridExtent[5])) |
| 770 | { |
| 771 | status = true; |
| 772 | } |
| 773 | break; |
| 774 | case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID: |
| 775 | if ((GridExtent[0] < i) && (i < GridExtent[1]) && (GridExtent[2] < j) && |
| 776 | (j < GridExtent[3]) && (GridExtent[4] < k) && (k < GridExtent[5])) |
| 777 | { |
| 778 | status = true; |
| 779 | } |
| 780 | break; |
| 781 | default: |
| 782 | std::cout << "Data description is: " << this->DataDescription << "\n"; |
| 783 | std::cout.flush(); |
| 784 | assert("pre: Undefined data-description!" && false); |
| 785 | } // END switch |
| 786 | |
| 787 | return (status); |
| 788 | } |
| 789 |
no test coverage detected