Open nDimensionalSpace opened 2 years ago
It looks like from the vtk documentation that FieldData is essentially arbitrary data that is unrelated to the actual structure stored in the file. I think this means that FieldData can also be arrays as well as single numbers, which I'm not sure that your implementation can handle.
It might be best to reuse the VTKDataNode class again here for FieldData to avoid reinventing the wheel. Is there some functionality that VTKDataNode is missing that we would need?
Yes, FieldData can contain a data array completely analogous to what, e.g., cell data can contain. Oh, my implementation for sure does not handle it; I didn't bother with that just because I don't have a pragmatic use case for it . . .
I think VTKDataNode will work just swimmingly; will swap it in in the next week or so.
Currently only works for int and double scalars. Verified to work for the intended use case . . . Screenshot attached. Functionality added to a single test ("single_hex"). Resolves #1 .