zospy.analyses.systemviewers.viewer_3d

Contents

zospy.analyses.systemviewers.viewer_3d#

zospy.analyses.systemviewers.viewer_3d(oss: OpticStudioSystem, oncomplete: OnComplete | str = OnComplete.Release) AnalysisResult#

Wrapper around the OpticStudio 3D Viewer.

Parameters:
oss: zospy.zpcore.OpticStudioSystem

A ZOSPy OpticStudioSystem instance. Should be sequential.

oncomplete: OnComplete | str

Defines behaviour upon completion of the analysis. Should be one of [‘Close’, ‘Release’, ‘Sustain’]. If ‘Close’, the analysis will be closed after completion. If ‘Release’, the analysis will remain open in OpticStudio, but the link with python will be destroyed. If ‘Sustain’ the analysis will be kept open in OpticStudio and the link with python will be sustained. To enable interaction when oncomplete == ‘Sustain’, the OpticStudio Analysis instance will be available in the returned AnalysisResult through AnalysisResult.Analysis. Defaults to ‘Release’.

Returns:
AnalysisResult

A Viewer 3D analysis result. As the viewers do not return data, the AnalysisResult can mainly be used to further control the analysis when oncomplete is set to Sustain.