**Learn more.**

# Understanding the Geometry in OpticStudio Curvature Cross-Section Analysis

Summary:

This article explains the geometry behind the OpticStudio curvature cross-section analysis. Two important aspects to understand are

- the conventions used for the tangential and sagittal curvature directions, and
- the placement of the cross-section in situations where the aperture is decentered.

Authored By:

Shawn Gay

Published On:

06/10/2016

Sample File:

Applies to:

Frequently Asked Questions

Sequential Ray Tracing

Analysis Features

OpticStudio

Sequential Ray Tracing

Analysis Features

OpticStudio

Article:

# Introduction

Our discussion begins with a simple standard surface with a strong hyperbolic component (see the attachment "CurvatureExampleZernikeStandardSag.ZAR"). The surface has azimuthal symmetry centered on the surface vertex. The surface entries in the Lens Data Editor, as well as the 3D layout for surfaces 1 and 2, are shown in the figure below. The lens material is not relevant as we are only discussing the geometry of the surface.**Figure 1. Cross-section of the example system shown in the 3D Layout window**

A visualization of the surface sag is shown in the next figure. While it may be difficult to see, the curvature is decreasing as the distance from the surface vertex increases.

**Figure 2. Visualization of surface sag using surface (left) and false color (right) plots.**

# Curvature Directions in the Surface Curvature Analysis

It is important to keep in mind the directions that OpticStudio uses in the curvature calculations. OpticStudio allows you to calculate curvature in the x, y, tangential and sagittal directions. While the x- and y-directions are invariant across the entire surface, the tangential and sagittal directions vary from point to point on the surface. The convention used by OpticStudio is that the tangential direction points radially away from the surface vertex and the sagittal direction is perpendicular to this and the local surface normal at the point. For a square cross-section of the surface, the x- and y-direction vectors are shown at every point in the following figure:**Figure 3. X and Y direction vectors**

The corresponding tangential and sagittal direction vectors are shown below. The central position highlighted in orange corresponds to the surface vertex.**Figure 4. Tangential and sagittal direction vectors. **

In the OpticStudio Surface Curvature analysis, a visualization is produced of the curvature values over the entire surface visible through the aperture. Note that at the surface vertex, an arbitrary choice is made as to the tangential direction. In the Surface Curvature analysis, the convention that OpticStudio adopts is to align the tangential direction with the x-direction at the surface vertex.

# Curvature Directions in the Surface Curvature Cross Section Analysis

In the OpticStudio Surface Curvature Cross Section analysis, the user specifies an orientation angle for the desired cross-section. OpticStudio will sweep through a curve on the surface in the plane corresponding to the cross-section orientation and report back the curvature values along this curve. As an example, consider a cross-section oriented at 0-degrees (i.e., the slice generated in the x-z plane). The following two figures show how the x- and y-directions compare to the tangential and sagittal directions for a 0-degree cross section.**Figure 5. X- and Y-direction vectors along the 0-degree cross-section path**

**Figure 6. The tangential- and sagittal-direction vectors along the 0-degree cross-section path**

For a rotated cross section, the convention used by OpticStudio is for the tangential direction at the surface vertex to line up with the tangential direction vectors along the rest of the cross-section. The following figure shows an example of a 45-degree cross-section with the corresponding tangential and sagittal directions. For surfaces that are not azimuthally symmetric, this can cause some confusion when comparing Surface Curvature Cross Section results with the Surface Curvature results for tangential or sagittal curvature at the surface vertex.

**Figure 7. The tangential- and sagittal-direction vectors along the 45-degree cross-section path**

# Cross-sections for Decentered Apertures

When an aperture is decentered, the cross-section in the OpticStudio analysis always goes through the center of the aperture, but does not in general pass through the surface vertex. The decentering results in tangential and sagittal curvature directions that do not in general correspond to the x- or y- directions, even along the 0-degree cross-section. For example, see the cross-sections illustrated in Figure 8 and Figure 9 below.**Figure 8. Example X and Y directions, 0-degree cross section with decentering.**

**Figure 9. Example tangential and sagittal directions, 0-degree cross section with decentering.**

# Cross-section calculation examples

We now show some calculation results for the Surface Curvature and related Surface Curvature Cross-Section analyses.## Case 1: No aperture decentering

To demonstrate an intuitive case, consider the 0-degree cross sections of the X- and Y-curvatures for a case with no aperture decentering. Figure 10 shows the X- and Y-curvature maps with dashed lines representing the cross-section paths and black arrows pointing from the surface vertex point to the corresponding point in the cross-section plot. Along this cross-section, the X- and Y-curvatures have the exact same values at the surface vertex, but the X-curvature falls off much faster than the Y-curvature as the test point moves to either side along the cross-section path. Figure 11 shows a similar presentation of cross-sections as in Figure 10, but this time for the tangential and sagittal curvature directions. It’s interesting to note that although the 2D maps look quite different, along this particular cross-section, the X- and Y-curvature cross sections have exactly the same values as the tangential and sagittal curvature cross sections. The reason why is because this happens to be a cross-section where the locally defined tangential and sagittal directions line up with the X- and Y-direction vectors (within a 180-degree flip to the left of the surface vertex, but due to the symmetry of the surface, this has no effect on the curvature values).**Figure 10. X- and Y-curvature plots, 0-deg cross-section, no decentering**

**Figure 11. Tangential- and Sagittal-curvature plots, 0-deg cross-section, no decentering**

## Case 2: Decentered apertures

Example cross-section curvature calculations for our sample system with a decentered aperture applied are shown in Figure 12 through Figure 15. The aperture on surface 1 has been decentered by (-10,-10). The aperture is square with side length of 25 mm.The results shown in Figure 12 and Figure 13 are x- and y-curvature values for 0- and 30-degree cross section orientations. The results shown in Figure 13 and Figure 14 are tangential and sagittal curvature values for 0- and 30-degree cross section orientations.

There are several differences to note between the Surface Curvature and the Surface Curvature Cross Section output. First, the false color plots in the Surface Curvature do not display values in the vignetted areas whereas the cross-section plots do. Second, note that the x- and y-axis values in the Surface Curvature analysis are plotted with respect to the surface vertex location whereas the cross-section x-axis corresponds to position along the cross-section projection, zeroed at the aperture center.

**Figure 12. X- and Y-curvature plots, 0-deg cross-section, decentered (-10,-10)**

**Figure 13. X- and Y-curvature plots, 30-deg cross-section, decentered (-10,-10)**

**Figure 14. Tangential and sagittal curvature plots, 0-deg cross-section, decentered (-10,-10)**

**Figure 15. Tangential and sagittal curvature plots, 30-deg cross-section, decentered (-10,-10)**

# A case without azimuthal symmetry

If a surface is not rotationally symmetric, the arbitrary definition of the tangential direction at the surface vertex means that the tangential and sagittal curvatures are multi-valued at that point. To illustrate how this looks in the Curvature Cross Section analysis, we show an example using a Zernike Standard Sag Surface (see Figure 16 and refer to the "CurvatureExampleZernikeStandardSag.ZAR" ample file.)**Figure 16. Example surface without azimuthal symmetry**

The tangential and sagittal curvature results as calculated by the Surface Curvature analysis are shown in Figure 17. Remember that the curvature value reported at the surface vertex in this analysis uses the convention that the tangential direction aligns with the +x direction. As such, it appears that there is a discontinuity in the curvature as you sweep through any cross-section except for the 0-degree case through the center. This is not really a discontinuity though, just a calculation artifact due to the fact that the tangential direction vector is really undefined at the surface vertex.

**Figure 17. Tangential (top) and sagittal (bottom) curvature reported in the Surface Curvature analysis**

Results for 0- and 30-degree cross-sections through this example surface are shown in Figure 18 and Figure 19. Due to the difference in the tangential directions in the two different cross-sections, the curvature values reported are significantly different at the surface vertex. Once again, if you happen upon a situation like this, don’t let it worry you—it is just an artifact of the arbitrary choice of tangential direction used in the calculations and not a physical discontinuity.