Free software

About OpticalSetup

Copyright © 2026 Luca Genchi and contributors.

OpticalSetup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

It is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

The numbers OpticalSetup reports come from models with stated limits; read each component's page in the wiki before relying on one.

If you use OpticalSetup in your research, teaching or publications, please cite the software:

Bertoncini, A., & Genchi, L. (2026). OpticalSetup - the optical workbench software [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23191537

Wiki / Mirrors / D-shaped mirror

D-shaped mirror

A mirror coated to one sharp edge, the pickoff of folded compressors: it reflects each beam on its first or second pass and lets the other go by.

Open in the canvas →

A live trace, not a picture of one — but this preview is not interactive. Open it in the canvas to move things, change parameters, and save or export your own version.

In the real world

A round mirror cannot sit close to a beam: its mount, its bevel and the last millimetre of uncoated glass all get in the way. A D-shaped mirror is cut along a chord and coated right up to that straight edge, which is left sharp rather than bevelled. Two beams a few millimetres apart can then be separated: one passes just beside the edge, the other lands on the coating next to it and is reflected away.

That is the job it does in a prism or grating compressor. The beam goes in past the edge, through the dispersive elements to a fold mirror that sends it back a little displaced, through the elements again, and onto the D-shaped mirror, which picks the compressed beam off. In the lab the displacement is usually vertical: the incoming beam passes just above the mirror and the returning one, a few millimetres lower, is reflected out.

In OpticalSetup

The canvas is a top view, where the lab's vertical displacement cannot be drawn: the beam going out and the one coming back lie on the same line. So the D-shaped mirror counts how many times each beam meets its face and reflects only on the pass set by Reflects on. On Second pass, the default, a beam goes by the first time, unchanged and without loss, as if it passed just above the edge, and is reflected when it comes back. On First pass it is reflected the first time and goes by on its return. Every pass after the second behaves as the second. When it reflects, it does so as a flat mirror does, with the same reflectivity settings.

Only hits on the face count. A pickoff laid out in the plane, with the return displaced sideways so the incoming beam passes beside the mirror's edge and never touches it, has the return as its first pass: set it to First pass. Each beam keeps its own count, so two separate beams that each meet the mirror once are both reflected, or both let by. The drawing marks which end is the sharp, coated edge (square, with a short bar) and which is the round back; Sharp edge flips it and does not change how the mirror acts.

For a dispersive double pass, send the beam back with a flat end mirror rather than with a retroreflector: an in-plane roof reflector reverses the colours' order across the beam, so the second pass doubles the spatial chirp instead of undoing it.

Simplified vs. reality

Only the reflecting face is traced. The substrate, the uncoated back and the mount do not block light, and the edge is perfectly sharp: real D-shaped mirrors clip a beam that comes within a few hundred micrometres of the edge and scatter a little from it. Which pass reflects is the user's choice, not worked out from beam heights, and a beam that goes by is not checked for clearing the edge. Light a fiber relaunches starts a new count. Reflectivity has the plain mirror's caveats: no angle, polarization or wavelength dependence.

Related components

Further reading