grouping conundrum

   4350   3   1
User Avatar
Member
119 posts
Joined: 7月 2005
Offline
i cant get my head around this one at the moment..


i have (a) number of points, and i want to divide them up into (b) number of groups.

say, 14 points into 7 groups


so i want to automate splitting up the 14 points into 7 groups of 2 points..

bearing in mind the number of points could vary, so the number of points in the groups would vary.


any thoughts?

cheers,

Mark
User Avatar
Member
4262 posts
Joined: 7月 2005
Offline
Partition SOP!

Group_`int($PT/($NPT/7))`
if(coffees<2,round(float),float)
User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
I just wanted to futher expand this thread on the partition SOP.As I am struggling to use this SOP !

I have a nurbs curve with 8 ( 0-7 ) points. I have then broken this up into 7 sections using the carve SOP giving me 14 points. 0 - 13. Now I want to create 2 groups of points with the partition SOP but with a difference. I want to put the first point of each segment into the first group and then I want to put the 2nd point of each segment into the second group.

Solved !

used 2 group SOPS !


rob
Gone fishing
User Avatar
Member
2199 posts
Joined: 7月 2005
Online
This is annoying, you'd think this would be easily solved with the partition sop and $VTX, sadly the partition sop doesn't support vertex numbers. Maybe an RFE?
The trick is finding just the right hammer for every screw
  • Quick Links