Requirements for running code
 
  1. Computational Geometric Algorithms library  :  My code used version 2.0
  2. Geomview : Used for viewing generated octrees


Installing

 The installation part is tricky as you have to first install  CGAL -2.0 or higher. The way the code has been integrated with CGAL, it is better if you follow the following procedure
 

                             cd CGAL_HOME;
                      tar xvzf octree.tar.gz                             set PATH=$PATH:${CGAL_HOME}/octree/3dpmc                             cd octree/3dpmc
                     gcc 3d_pmc.c -lm -o 3dpmc                             cd octree
                     make test_octree
                     make cgal_poly_to_poly

                                                             Installation complete
 

Making it Run

                                     test_octree  <off_file>  <result_file>  <depth>  where,
 
                                 off_file = input file in off format (see above)
                                 result file = file to be used for viewing in geomview
                                 depth =  max depth of a node in the octree.