ikarus Posted August 4, 2011 Share Posted August 4, 2011 I attempting to create a group for each point which contains the 3 nearest particles, in vops i plugged in PT to a print to generate groups using Create Point Group, i would then pc open/iterate through the points and add them to each respective group but it appears if you try to use more than one group inside the vop it just applies to the first group which was read (usually group0) i figured that to work around that you could just use a foreach to generate groups for every point, but adding the points to each group doesnt appear to work, is there a solution to this in sops? Quote Link to comment Share on other sites More sharing options...
anim Posted August 4, 2011 Share Posted August 4, 2011 you can do it in the same foreach in which you are creating groups create group fill it with neighbour numbers from second input which will be full geometry not just currently processed point (and don't forget to skip first point when pcimporting which will be current point) it would be of course slower than single VOP SOP, but it really seems that group name in addgroup() is not evaluated per point what you may also consider is to create vector attribute containing numbers of 3 closest neighbours instead of groups or you can use array if there is more it depends on your usage however Quote Link to comment Share on other sites More sharing options...
ikarus Posted August 4, 2011 Author Share Posted August 4, 2011 (edited) the problem becomes this: within the foreach loop i can make a group from the second input for each point based on a bounding box which is essentially the proximity group, but if you have "merge results" turned on its going to replicate all of your points for every point. i need to retain the grouping patterns without accumulating copies of points edit: simple solution, adding a fuse to afterwards with group propagation set to union consolidates all the point copies and places them in appropriate groups Edited August 4, 2011 by ikarus Quote Link to comment Share on other sites More sharing options...
Owl Posted August 23, 2011 Share Posted August 23, 2011 I attempting to create a group for each point which contains the 3 nearest particles, in vops i plugged in PT to a print to generate groups using Create Point Group, i would then pc open/iterate through the points and add them to each respective group but it appears if you try to use more than one group inside the vop it just applies to the first group which was read (usually group0) i figured that to work around that you could just use a foreach to generate groups for every point, but adding the points to each group doesnt appear to work, is there a solution to this in sops? why not create attribute + partition sop afterwards? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.