Package pyffi :: Package utils :: Module inertia
[hide private]
[frames] | no frames]

Module inertia

source code

Calculate the mass, center of gravity, and inertia matrix for common shapes.
Functions [hide private]
 
getMassInertiaSphere(radius, density=1, solid=True)
Return mass and inertia matrix for a sphere of given radius and density.
source code
 
getMassInertiaBox(size, density=1, solid=True)
Return mass and inertia matrix for a box of given size and density.
source code
 
getMassInertiaCapsule(length, radius, density=1, solid=True) source code
 
get_mass_center_inertia_polyhedron(vertices, triangles, density=1, solid=True)
Return mass, center of gravity, and inertia matrix for a polyhedron.
source code
Variables [hide private]
  __package__ = 'pyffi.utils'