Skip to content

nickorzha/glass-plotter

Repository files navigation

Glass Plotter

MDI

Description

GlassPlotter is a desktop application to utilize commercial optical glass catalogs. It features to provide a great variety of functional plots with good-looking graphics. It hopes to be useful for diverse optical engineers.

Getting Started

Glass Catalogs

This application reads AGF/XML files distributed elsewhere, most of which are freely available.

Be careful that the catalog files in this repository are not always up to date.

  1. Zemax AGF
    Available on each manufacturer's website.

  2. CODE V XML
    Available on Synopsys support page.

Notes

This application computes refractive index relative to air(relative refractive index). This is because the values in the catalog are relative index values. And the refractive index of optical glasses changes with temperature, and the extend depends on the glass type and on the wavelength. Read Schott Technical Information (TIE-19) for calculation details.

When you find a slight difference between official data and that of this application, check the environment temperature setting (File->Preference). With the temperature value set to the same as that of the glass supplier, the calculated refractive index should be the same value.

Development

Dependencies

Library Description
Qt GUI library
QCustomPlot Graph plotting library
spline Cubic spline interpolation library
Eigen Template library for linear algebra
pugixml Simple XML parser

Building from Source

All of the dependencies except Qt itself have been already included in this repository.

Use cmake to generate Visual Studio solution.