Skip to content
tim4431 edited this page Jan 13, 2025 · 4 revisions

This is a guide to using Optable!

A minimal example:

r0=Ray(origin=[0, 0, 0], direction=[1, 0, 0])
m0 = Mirror([0, 0, 0]).RotZ(np.pi / 6)

rays = [r0]
components = [m0]

table = OpticalTable()
table.add_components(components)
table.ray_tracing(rays)
Clone this wiki locally