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;
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..