Packinon Home > Python programs > pocket.py

pocket.py

An example program using a function which places two balls in contact with three others, where the ball radii vary.

The output is a POV file showing the three original balls (red, green and blue), and the two contacting balls (yellow). The contacting ball centres are the two intersection points of the transparent spheres (which are the original balls whose radius has been augmented by the contacting ball radius).

pocket.py




SourceForge.net Logo Maintained by Adrian Rossiter - adrian_r@teleline.es