pyoptools.raytrace.surface.aperture module

Module that defines stops classes

class pyoptools.raytrace.surface.aperture.Aperture

Bases: pyoptools.raytrace.surface.plane.Plane

Class to define a surface with an aperture

This class is used to define stops in the optical system. It receives two parameters.

ARGUMENTS:

shape It is a subclass of Shape, and defines the external shape of the stop
ap_shape It is a subclass of Shape, and defines the internal shape of the stop (the aperture shape).

EXAMPLE

Creation of an aperture surface:

ap=Aperture(shape=Rectangular(size=(60,60)),ap_shape=Circular(radius=2.5))

Note: To create an stop component, use the Stop class from the comp_lib module. It creates the aperture surface and encapsulate it in an component that can be used in a System.

ap_shape
propagate()

The OptSurf.propagate is overloaded so it can be decided if the rays continue propagating or not.

Warning: This surface only checks if the ray continues or not. It does not calculate refraction or reflection. It must not be used to create lenses or mirrors.