It’s a bit wonky, but it is possible to append the coordinates of the cell centers to the mesh. The following steps should work.
- Add the
Cell Centersfilter. Turn on theVertex Cellsproperty.Apply. - Add the calculator filter. Set the
Result Array Nameto “Center” and the expression to compute to “coords”.Apply. - Add the
Point Data to Cell Datafilter.Apply. - In the pipeline browser, select both your original data set and the
Point Data to Cell Datafilter you just created. Add theAppend Attributesfilter.Apply.
That should do it.
For a bit more details, here is what each step is doing.
Step 1 is create a vertex cell (cell containing only one point) at the center of each cell in your original data set.
Step 2 is moving the point coordinates of each point to field data. Because of limitations of the calculator, it gets attached to points instead of cells.
Step 3 moves the field from points to cells. Because each cell only has one point, the values do not change.
Step 4 copies this cell field back to your original dataset.