This example is a Python script to convert Zemax BSDF to Speos BSDF. The script is available here. It is not yet in the main branch as we are still running some tests but do feel free to use it and leave a comment.
https://github.com/ansys/optical-automation/blob/BSDF-converter/ansys_optical_automation/application/BSDF_converter_example.py
The user inputs are:
- BSDF_inputFilepath: the Zemax BSDF. A window will appear to select the BSDF.
- precisionTheta: the precision between theta values for the Speos BSDF. The default value is 1 degree.
- precisionPhi: the precision between phi values for the Speos BSDF. The default value is 1 degree.
The script will create a Speos BSDF file in the same folder as the Zemax BSDF file.
For more information about Ansys optical_automation, click here.