Hi guys, I want to ask you a simple question. Is it possible to get center of mass of an object in SOP network.
I think it may different from $CEX,Y and Z. So plz show me some method. Thanks in advance!
Is it possible to get center of mass of object in sop
4149 3 0- syzmatrix
- Member
- 111 posts
- Joined: Dec. 2008
- Offline
- eetu
- Member
- 606 posts
- Joined: May 2007
- Offline
Hi, if the geometry is clean enough, you can convert it to volume and take a weighted average of the voxel positions.
See hip file in http://forums.odforce.net/index.php?/topic/8471-eetus-lab/ [forums.odforce.net] first post.
See hip file in http://forums.odforce.net/index.php?/topic/8471-eetus-lab/ [forums.odforce.net] first post.
- syzmatrix
- Member
- 111 posts
- Joined: Dec. 2008
- Offline
- Jyota_Malcolm
- Member
- 12 posts
- Joined: Nov. 2017
- Offline
I ran across this issue and I just wanted to update the solution. The correct way to find the center of mass of is to use the extract centroid sop. You can choose your method between center of mass and bounding box. You can update the pivot of your object by typing in the location of the extracted centroid into your pivot transform.
Cheers,
Jyota Malcolm
Cheers,
Jyota Malcolm
-
- Quick Links