CS 551 / CS 651: Computer Animation

Fall 2003

Professor Brogan

 

Assignment 1: Rigid Body Simulation

 

Due: 5:00 Monday, Sept 29th

 

Computing center of mass (COM) and moment of intertia (MOI)

Download: lienKajiya.zip

The code included in this file will find the COM and MOI for a closed polygonal model.  The code uses the algorithm specified by Lien and Kajiya in their 1984 paper, A Symbolic Method for Calculating the Integral Properties of Arbitrary Nonconvex Polyhedra - IEEE Computer Graphics and Applications, 4(10):35-41.

The included main.cpp program demonstrates how the COM and MOI computation can be applied to a simple cube that is transformed in multiple ways.  You will need to take the polygons imported by your 3ds loader, convert them into JDPolygons, and build a JDPolygonList object from them.