| 832 | } |
| 833 | |
| 834 | std::vector<std::string> vtkGLTFWriter::GetFieldAsStringVector(vtkDataObject* obj, const char* name) |
| 835 | { |
| 836 | vtkFieldData* fd = obj->GetFieldData(); |
| 837 | std::vector<std::string> result; |
| 838 | if (!fd) |
| 839 | { |
| 840 | return result; |
| 841 | } |
| 842 | vtkStringArray* sa = vtkStringArray::SafeDownCast(fd->GetAbstractArray(name)); |
| 843 | if (!sa) |
| 844 | { |
| 845 | return result; |
| 846 | } |
| 847 | for (int i = 0; i < sa->GetNumberOfTuples(); ++i) |
| 848 | result.push_back(sa->GetValue(i)); |
| 849 | return result; |
| 850 | } |
| 851 | |
| 852 | std::string vtkGLTFWriter::WriteToString() |
| 853 | { |
nothing calls this directly
no test coverage detected