- Home
- User Articles
- How to Write User-Defined Surfaces with Waterloo Maple
- Home
- Programming ZEMAX
- User Defined Features
- How to Write User-Defined Surfaces with Waterloo Maple
How to Write User-Defined Surfaces with Waterloo Maple
- By Mikhail Levtonov
- Published 14 March 2006
- User Articles , User Defined Features
-
Rating:




Defining the Surface Normal
Now we have the surface sag, the next step is to compute the direction cosines of the normal vector. The normal vector at a point (x0,y0) on a surface z = f(x,y) is given by

where fx = df/dx and fy = df/dy are partial derivatives. So, the direction cosines will be as follows:

In Maple, fx is given by:

The same actions are used to compute Fy.