Computational Geometry Tutorial Logo

CGTutorial is a computational geometry tutorial written in Java. It implements various CG algorithms and animates some of them. A library of CG methods and data structures is provided, in the form of Java packages. The library includes, among the others, the following algorithms:


CGTutorial can be run be any Java Runtime Environment, starting from version 1.6. To download the latest JRE, check out

To view the applet, click here. Downloading and starting the applet can take a while (say few minutes).

To grant the applet privileges to open/save files on your local disk, you must take the following steps:

Alternatively, you can download the tutorial, compile it (make all) and run it as a standalone application (java -jar CGTutorial.jar).

Code modifications

Code modifications must be done through the Subversion repository. You can check out the repository through svn as follows:

svn co cgtutorial

Browse the online javadoc documentation.


Copyright (C) 2000-2008 Massimo Bartoletti.

For comments and suggestions: piersushi at

CGTutorial comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the GNU General Public License for details.