copied from the old reader to make sure tensor components are correct
| 147 | |
| 148 | // copied from the old reader to make sure tensor components are correct |
| 149 | int getDestinationComponent(int srcComponent, int numComponents) |
| 150 | { |
| 151 | if (numComponents == 6) |
| 152 | { |
| 153 | // for 6 component tensors, the symmetric tensor components XZ and YZ are interchanged |
| 154 | // see #10637. |
| 155 | switch (srcComponent) |
| 156 | { |
| 157 | case 4: |
| 158 | return 5; |
| 159 | |
| 160 | case 5: |
| 161 | return 4; |
| 162 | } |
| 163 | } |
| 164 | return srcComponent; |
| 165 | } |
| 166 | |
| 167 | void setPointDataScalarsVectors(vtkDataSet* dataset, vtkDataArray* array) |
| 168 | { |