Jump to content

Split Points Into 3 Groups


Recommended Posts

Hello,

I have a point cloud of 5000 points. I want to randomly assign these points to 3 different groups but I don't want each group to have the same point?

This is probably simple but I can't figure out how to do this procedurally?

The point count is not set in stone as I will need to adjust it per scene file.

Thanks!

Link to comment
Share on other sites

There's a bunch of ways you can do this using expressions, but most expressions you come up with are going to be somewhat ordered. So here's a suggestion that will create some pretty random goupings using a handful of SOPs...

The key is to randomly sort the points before you start grouping them. If you need to have the original point order back for some reason you can transfer your groups back to the original geometry.

randomgroups1.hip

Link to comment
Share on other sites

There's a bunch of ways you can do this using expressions, but most expressions you come up with are going to be somewhat ordered. So here's a suggestion that will create some pretty random goupings using a handful of SOPs...

The key is to randomly sort the points before you start grouping them. If you need to have the original point order back for some reason you can transfer your groups back to the original geometry.

25383[/snapback]

That's it, I forgot about group by range!

Thanks

/Rick

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...