| 1069 | // for that in which case the calling function must delete it. |
| 1070 | template <class T, class Array> |
| 1071 | T* GetArrayRawPointer(vtkAbstractArray* array, int isAOSArray) |
| 1072 | { |
| 1073 | if (isAOSArray) |
| 1074 | { |
| 1075 | return GetPointer<T, Array>(array); |
| 1076 | } |
| 1077 | |
| 1078 | auto nc = array->GetNumberOfComponents(); |
| 1079 | auto nt = array->GetNumberOfTuples(); |
| 1080 | |
| 1081 | T* data = new T[nc * nt]; |
| 1082 | array->ExportToVoidPointer(data); |
| 1083 | return data; |
| 1084 | } |
| 1085 | |
| 1086 | } // end anonymous namespace |
| 1087 |
nothing calls this directly
no test coverage detected