copy point to centre of group

   1847   2   0
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi All ,
How could I copy a point to the centre of a group of polygons. ie 1 point per fractured group ?

rob
Gone fishing
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
There's a lot of ways you could do it.

You could use a ForEach on each group and inside just create a point at the center of the geometry using an Add SOP and a centroid() expression. You could also scale each group down to 0 from the centroid and Fuse to get a single point.

I've also coded Python or HDK operators that do this as well by creating a point at the average point position of the group.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Must make note to remind myself …………

Rob
Gone fishing
  • Quick Links