I want to check if two Groups are the same, so have the exact same primnumbers. Based on that I want to create a detail attribute that is either 1 or 0. You can see my approach right here.
What my thought was that I Loop Over the primitives and then check if they are within the groups. If so they get assigned to an array . I do this for each group and then compare if the arrays are the same.
It works, but it is really slow.
How can I improve this? If the way I approached this is simply wrong, how is the right/better way to approach it.
Soothsayer Do you want this in vex? Does it have to run over prims or can you be in detail mode?
If not I'd probably isolate the geo by groups and see if they coincide exactly.
Well, I would love to see how you can do it in Vex as well just for personal improvement purposes. It can definitely be in detail mode. I am running this code in detail mode too.
Do you mean to isolate the two parts with a blast and then see if the prim count is the same?
Didn't realize that the screenshot was missing a few lines. I updated it now.