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

Shayan Nikoohemat shayan.nikoohemat at gmail.com
Wed Aug 9 10:44:31 EDT 2017


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, wall_2])

Then I have below spread sheet:
[image: Inline image 1]

Then I need to make a new field e.g. "groups" (better through a
programmable filter) and for each group I add the name of the dataset. The
expected result table would looks like this:

BlockNumber, Point ID, vtkPointId, Points, Label, Label2, Groups
1, 0, 36617,    ..., ..., ... , ...,
..............................................
 wall_1
1, 1 , 420914, ..., ..., ... , ...,
..............................................
 wall_1
1, 2, 444161,  ..., ..., ... , ...,
..............................................
 wall_1
2, 0, 27932,    ..., ..., ... , ...,  ...
..........................................
 ceiling
2, 1 , 296452, ..., ..., ... , ...,  ...
.........................................
 ceiling
2, 2, 315135,  ..., ..., ... , ...,  ...
........................................
  ceiling
3, 0, 36617,    ..., ..., ... , ...,  ...
.........................................
  wall_2
3, 1 , 420914, ..., ..., ... , ...,  ...
.........................................
  wall_2

So my question has two parts:
1. How do we automatically group datasets in the pipeline browser?
2. While grouping, how to add a field as an attribute that contains the
datasets names.

Then I can save this spreadsheet for later use.

Thanks for any help.

Shayan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170809/b6421a38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 44509 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170809/b6421a38/attachment.png>


More information about the ParaView mailing list