pyoptools.raytrace.surface.taylor_poly module

Module that defines a polynomical optical surface, using taylor polynomials

class pyoptools.raytrace.surface.taylor_poly.TaylorPoly

Bases: pyoptools.raytrace.surface.surface.Surface

Class that defines a high order polynomical surface

An aspherical surface is defined as:

Z= poly2d(x,y)
Example
>>> cs=TaylorPoly(shape=Rectangle(size=(5,5)), poly =poly2d((0,1,1)))
normal()

Return the vector normal to the surface

This method returns the vector normal to the asphere at a point int_p=(x,y,z).

Note: It uses x and y to calculate the z value and the normal.

poly
topo()

Returns the Z value for a given X and Y

This method returns the topography of the TaylorPoly surface to be used to plot the surface.

zmax
zmin