Light Rays and Mirrors Code
Written by:
Joseph O'Rourke and
Octavia Petrovici
Pages created by: Amanda Toop
This page gives access to code associated
with the paper:
Narrowing Light Rays with Mirrors.
The Code
The code consists of three separate C++ programs:
- SegGen.cpp: Generate random disjoint segments.
- AngleRaysSeg.cpp: Shoot rays in a cone amongst disjoint segments.
- AngleRaysCirc.cpp: Shoot rays in a cone amongst disjoint disks.
All are packaged together:
Download mirrors.tar.gz (13K).
This is a gzip'ped (compressed) tar (archive) file.
Unix commands to unpack:
gunzip mirrors.tar.gz
tar -xvf mirrors.tar
This will unpack to three directories.
Input and Output Format
The code is not very user-friendly, but the following
I/O descriptions should enable anyone to adapt it to
their own purposes:
Smith College
Computer Science Department
Northampton, MA 01063