May I ask how to find the centroid of a 3d geometry, such as a box?
Thanks!
how to find the centroid of a 3D object?
6526 2 2-
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- eetu
- 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.
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.
-
- Sadjad Rabiee
- Member
- 1391 posts
- Joined: Dec. 2010
- Offline
-
- Quick Links