Question #641561 on Yade changed: https://answers.launchpad.net/yade/+question/641561
Jan Stránský proposed the following answer: Hello. > 2) So you're saying that I should add to each facet a mass that is proportional to its area? And if so, is there a way to directly retrieve such information? not that you should, it very much depends on a specific situation. But since it is not difficult to add, I would go this way :-) to get area of a facet: f = O.bodies[...] # a facet area = f.shape.area > 3) clump.state.inertia ... principal values of inertia (should be equal to the diagonal of the diagonal matrix from solidWorks) ori = clump.state.ori ... quaternion representing rotation mori = ori.toRotationMatrix() ... rotation matrix, after creation (before further rotation) its columns (rows?) represents principal axes I am not 100% sure with this point, please test it and if you find some difficulties, let us know cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

