Hi All,
Sorry if this has been covered. I couldn't find an explanation.
I've been struggling with trying to get a PDG set up going where I have a set of work items that I want to be iterated on by another set of work items and then fed further down the chain for more PDG goodness.
(So, for example, I have 5 different points, and I want to copy 10 different coloured spheres to that point and output each as its own geometry. I have a HDA that I want to do this with, and I would expect the input to that HDA to be 50 work items)
However, when I try to do a partition by index to organize these items, I would have expected it to organize it by the wedgenum of the index (my 5 different points) but instead it seems to be mixing and matching based on a different index.
I really lack the vocabulary to describe the problem in too great a detail so I hope that by simplifying that circumvents that.
Any help would be much appreciated!
PDG Partition by Index Question
2663 5 1- JakeBoe
- Member
- 2 posts
- Joined: 12月 2018
- Offline
- BrookeA
- スタッフ
- 387 posts
- Joined: 8月 2017
- Offline
Hi,
Based on this example that you described:
I don't think you would need a partition node. Instead, you could feed your 5 points to the wedge node to generate the 50 work items, and then feed that directly to an HDA Processor, for example.
If you did want to group them together, you could use a Partition by Attribute. Using a Partition by Attribute with the “Distinct Attribute Values” setting and partitioning based on the wedgenum attribute will result in getting 10 partitions (1 for each colour, each containing the 5 points).
Alternatively, using a Partition by Attribute with the “Distinct Attribute Values” setting and partitioning based on the point number attribute will result in getting 5 partitions (1 for each point, each containing all 10 colours).
I've attached a .hip file that hopefully makes this much more clear than my text explanation.
Based on this example that you described:
(So, for example, I have 5 different points, and I want to copy 10 different coloured spheres to that point and output each as its own geometry. I have a HDA that I want to do this with, and I would expect the input to that HDA to be 50 work items)
I don't think you would need a partition node. Instead, you could feed your 5 points to the wedge node to generate the 50 work items, and then feed that directly to an HDA Processor, for example.
If you did want to group them together, you could use a Partition by Attribute. Using a Partition by Attribute with the “Distinct Attribute Values” setting and partitioning based on the wedgenum attribute will result in getting 10 partitions (1 for each colour, each containing the 5 points).
Alternatively, using a Partition by Attribute with the “Distinct Attribute Values” setting and partitioning based on the point number attribute will result in getting 5 partitions (1 for each point, each containing all 10 colours).
I've attached a .hip file that hopefully makes this much more clear than my text explanation.
Edited by BrookeA - 2020年7月3日 11:03:29
- JakeBoe
- Member
- 2 posts
- Joined: 12月 2018
- Offline
- maartennielen
- Member
- 7 posts
- Joined: 8月 2017
- Offline
- tpetrick
- スタッフ
- 578 posts
- Joined: 5月 2014
- Offline
- maartennielen
- Member
- 7 posts
- Joined: 8月 2017
- Offline
-
- Quick Links