Pb with PointDataToCellData with categorical data
I have the following issue when I use the PointDatatoCellData filter:
- when I activate the "Categorical Data" option, it seems that this filter produces no CellData array
- without this option, I get CellData arrays as expected.
Here is a sample python script to demonstrate my issue :
import paraview
from paraview.simple import *
# create a new 'Superquadric'
superquadric1 = Superquadric(registrationName='Superquadric1')
# create a new 'Python Calculator'
pythonCalculator1 = PythonCalculator(registrationName='PythonCalculator1', Input=superquadric1)
pythonCalculator1.Expression = '(points[:, 0] > 0).astype(int) + 2*(points[:, 1] > 0).astype(int) + 4*(points[:, 2] > 0).astype(int)'
pythonCalculator1.ArrayName = 'domain'
# create a new 'Point Data to Cell Data'
pointDatatoCellData1 = PointDatatoCellData(registrationName='PointDatatoCellData1', Input=pythonCalculator1)
pointDatatoCellData1.ProcessAllArrays = 0
pointDatatoCellData1.PointDataArraytoprocess = ['domain']
pointDatatoCellData1.CategoricalData = 1
I have this issue with different versions of Paraview (5.8, 5.10, 5.11).