O'Reilly logo

Blender 2.49 Scripting by Michel J. Anders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Determining the centre of mass of a mesh

When printing a three-dimensional object in plastic or metal, a seemingly innocent question might pop up once we create our first toy based on a mesh we created; what is its center of mass? If our model has legs but we don't want it to keel over, its center of mass better be somewhere over its feet and, preferably, as low as possible to keep it stable. This figure shows this schematically:

Determining the centre of mass of a mesh

Once we know how to determine the volume of a mesh we can reuse many of the concepts to devise a script to determine the center of mass. Two additional bits of knowledge are needed to compute the position of the center ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required