how to find the centroid of a 3D object?

   6210   2   2
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
May I ask how to find the centroid of a 3d geometry, such as a box?

Thanks!
User Avatar
Member
606 posts
Joined: May 2007
Offline
There's a centroid() expression function: http://www.sidefx.com/docs/houdini14.0/expressions/centroid [sidefx.com]
It returns the center of the bounding box of the geometry.

If you want a proper center of gravity, I'd go [forums.odforce.net] via a voxelized version of the geometry and calculate the average of populated voxels' coordinates.
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
oat
May I ask how to find the centroid of a 3d geometry, such as a box?

Thanks!



I think this is just a Joke ! Right ? 8)
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links