[Sidefx-houdini-list] center of mass?
tnixon at laika.com
Mon Feb 2 12:51:22 EST 2009
Ahh, yeah, I was hoping for a more accurate way than averaging.
Thank you. great idea.
----- Original Message -----
From: "Eetu Martola" <eetu at iki.fi>
To: sidefx-houdini-list at sidefx.com
Sent: Saturday, January 31, 2009 2:27:21 AM GMT -08:00 US/Canada Pacific
Subject: Re: [Sidefx-houdini-list] center of mass?
> Tom Nixon wrote:
>> Is there a quick and dirty way to calculate the center of mass of
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;
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.. :)
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
The information contained in this message and its attachments is
confidential and proprietary to LAIKA, Inc. By opening this email
or any of its attachments, you agree to keep all such information
confidential and not to use, distribute, disclose or copy any part
of such information without the prior written consent of LAIKA,
Inc. If you are not the intended recipient of this message, any use,
distribution, disclosure or copying of such information is prohibited.
If received in error, please contact the sender.
More information about the Sidefx-houdini-list