| 877 | } |
| 878 | |
| 879 | inline bool SameShape(vtkPointData* a, vtkPointData* b) |
| 880 | { |
| 881 | if (!a || !b) |
| 882 | { |
| 883 | return false; |
| 884 | } |
| 885 | |
| 886 | if (a->GetNumberOfArrays() != b->GetNumberOfArrays()) |
| 887 | { |
| 888 | PrintNames(std::cerr, a); |
| 889 | PrintNames(std::cerr, b); |
| 890 | return false; |
| 891 | } |
| 892 | |
| 893 | int numArrays(a->GetNumberOfArrays()); |
| 894 | for (int i = 0; i < numArrays; i++) |
| 895 | { |
| 896 | if (a->GetArray(i)->GetNumberOfComponents() != b->GetArray(i)->GetNumberOfComponents()) |
| 897 | { |
| 898 | return false; |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | return true; |
| 903 | } |
| 904 | #endif |
| 905 | |
| 906 | //------------------------------------------------------------------------------ |
no test coverage detected