Welcome to gtrace’s documentation!

gtrace traces Gaussian beams through an optical system laid out on a bench. You place mirrors and lenses in Python and trace the beams. You look at the result in a browser and move the elements until the layout is right. When the layout is finished, you export the drawing to DXF.

Install it with:

pip install "gtrace[notebook]"

Then read Introduction, which builds a bench of a laser, a lens and two mirrors, and opens it in the viewer. Tutorial works through a larger example.

Indices and tables