是否可以通过可编程的python过滤器列出组数据集过滤器中输入的名称?
我有很多点源已在paraview中分组。然后,我应用了“合并块”,然后应用了可编程Python过滤器。
这是到目前为止可编程过滤器中的代码:
pdi = self.GetInput()
npts = pdi.GetNumberOfPoints()
print npts
for i in range(0, npts):
coord1 = pdi.GetPoint(i)
print coord1
此代码打印每个点源的坐标。我还想打印点源的名称,如下所示: PointSource1 PointSource5 等等
感谢您的帮助。