Hello there,
using the ParaView xml format, is it possible to declare a data array as constant/uniform (i.e. all cells get the same value(s))?
What I want is to only write something like
and then for ParaView to broadcast those values to all cells. So far, I’ve found nothing in the documentation that makes it look possible, but here’s hoping I’m wrong
This is not a direct answer to broadcasting a certain value to all cells as Cell Data, but there is a way to use Field Data to have a common value in all cells.
Hey, thank you for your reply, but I have trouble getting it to work. Can you give me an example that paraview can read? Here’s what I tried, as a template:
In the case of 2D image data, when it is loaded, the Slice representation is initially used, and since the Slice representation might not support the display of FieldData, ParaView would terminate abnormally. Therefore, for 2D image data, it is necessary to have a Scalar for PointData or CellData in addition to FieldData, as shown below.