eetu Posted February 2, 2009 Share Posted February 2, 2009 Hello, all While learning this beast of a software, I bet everyone has accumulated a bunch of more or less interesting tests and stupid tricks on their hard drives. Here's some of what has been accumulating on mine, before bit rot takes them, hopefully some might inspire others on this same road.. First, one from the mailing list a couple of days ago >>Tom Nixon wrote: >> Is there a quick and dirty way to calculate the center of mass of geometry? >> > Louis Dunlevy wrote: > A super duper cheapo way would be to use the attribute promote sop. > Stick position in the colour and then promote the colour to a detail > attribute using the avarage method.. > The average of point positions is not necessarily very close to center of mass. think of a large cube connected to a small geosphere, average P would be a lot closer to the sphere. Here's a quickly knitted vop sop doing it via a volume; http://eetu.iki.fi/hou/center_of_gravity.hip The idea is to take a volume representation of the object, and take the average of the voxel positions, weighted with voxel opacity. Of course there are probably 5 more elegant ways to do it, but anyway.. eetu. center_of_gravity.hip 5 Quote Link to comment Share on other sites More sharing options...
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.