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

Function getDestinationComponent

IO/EnSight/core/EnSightDataSet.cxx:149–165  ·  view source on GitHub ↗

copied from the old reader to make sure tensor components are correct

Source from the content-addressed store, hash-verified

147
148// copied from the old reader to make sure tensor components are correct
149int 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
167void setPointDataScalarsVectors(vtkDataSet* dataset, vtkDataArray* array)
168{

Callers 1

ReadVariableArrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected