[Paraview] Fwd: add dataset names as a field to the groupdataset

2017-08-09 Thread Shayan Nikoohemat
Is it possible automatically assign block numbers in a group data set to a new field and replace them with each data set name? For example I have data sets of points: wall1, wall2 , ceiling, floor and then I make a group dataset: groupDatasets1 = GroupDatasets(Input=[wall_1, floor_1, ceiling_1,

Re: [Paraview] Get value of a vtkintarray object by the filed name

2017-08-08 Thread Shayan Nikoohemat
umberOfPoints()): > rF = inRArray.GetValue(x) > gF = inGArray.GetValue(x) > bF = inBArray.GetValue(x) > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Aug 8, 2017 at 7:08 AM,

[Paraview] Get value of a vtkintarray object by the filed name

2017-08-08 Thread Shayan Nikoohemat
I have a Paraview programmable filter written in python, that I am running on a table of points to assign RGB colors as UnsignedCharArray. I'm just stuck in one part of the code to get the value of R, G, B fields in the range. Here is the table example: [image: Inline image 1] ids =

[Paraview] add a field with a custom attribute to selected points

2017-08-04 Thread Shayan Nikoohemat
I have a dataset of points, I select several points and I want to add an attribute to them and extract them. Then repeat this for some other selected points from the same dataset. At the end I append the selected datasets, and then from the field that I added and gave them attribute I should be