Skip to content

Lens in vacuum #200

Answered by HarrisonKramer
mattemilio asked this question in Q&A
Jun 15, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @mattemilio,

Please see this example: https://optiland.readthedocs.io/en/latest/gallery/specialized_lenses/infrared.html

Essentially, all you need to do is pass the material directly to the add_surface function:

silicon = materials.IdealMaterial(n=3.4222)
lens.add_surface(index=1, radius=2.0721, thickness=0.1340, material=silicon)

Hope this helps.

Regards,
Kramer

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mattemilio
Comment options

@mattemilio
Comment options

@HarrisonKramer
Comment options

Answer selected by mattemilio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants