An OpenGL animation of a rolling Torus using the GSL for numerical integration
C Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README
_torus.pyx
main.c
makemovie
playmovies
run.py
setup.py
torus.c
torus.h

README

Rolling Torus Animation
=====

An OpenGL and GSL based animation of an uniform density torus rolling without
slip on a flat plane.

License: New BSD License (see the LICENSE file for details)
covers all files in the sympy repository unless stated otherwise.

0. Download
-----------

The source code is hosted on github.com :

$ git clone git://github.com/hazelnusse/Rolling-Torus.git


1. Required libraries
--------------------------

To build the source, you must be able to link to the following libaries:

libgsl -- GNU Scientific Library
cblas  -- C Basic Linear Algebra Subsystem
atlas  -- Automatically Tuned Linear Algebra Software
GL     -- Open GL library
GLU    -- Open GL utility library
glut   -- Open GL utility toolkit

Under Ubuntu/Debian, these can be installed via:
aptitude install libatlas-base-dev libatlas-headers libatlas3gf-base \
         libgsl0-dev libgsl0ldbl freeglut3 freeglut3-dbg freeglut3-dev

2. Clean
--------

To clean everything (thus getting the same tree as in the repository):

$ ./make clean

3. Python wrappers
------------------

To compile the Python wrappers, do:

./setup.py build_ext --inplace

and run:

python run.py

for a simple demo.