rayoptics.zemax.zmx2ro module

Post processing functions for Zemax import

apply_fct_to_sm(opt_model, fct, start=None, stop=None, step=None)[source]

Iterate in reverse over seq_model.ifcs. Override if needed.

convert_to_bend(opt_model, cur)[source]

Scan the zemax import for tilted mirrors and convert to BEND types.

convert_to_dar(opt_model, cur)[source]

Scan the zemax import for tilted surfs and convert to DAR types.

collapse_coordbrk(opt_model, cur)[source]

Attempt to apply the cur COORDBRK to an adjacent real interface.

remove_null_sg(opt_model, cur)[source]

Remove sg with planar profile and an adjacent zero thickness air gap.