utils.math.position_manipulation.get_mass_properties

utils.math.position_manipulation.get_mass_properties(obj: ScannedObject) tuple
Evaluate and return a tuple with the following elements:
  • the volume

  • the position of the center of gravity (COG)

  • the inertia matrix expressed at the COG

Parameters:

obj – Object to analyse

Returns:

tuple(float, numpy.array, numpy.array)

From numpy-stl:(https://pypi.org/project/numpy-stl/)

Documentation can be found here: http://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf