Light Rays and Mirrors Code
Joseph O'Rourke and
Pages created by: Amanda Toop
This page gives access to code associated
with the paper:
Narrowing Light Rays with Mirrors.
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:
This will unpack to three directories.
tar -xvf mirrors.tar
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:
Computer Science Department
Northampton, MA 01063