Navigation: Scripting Reference Manual > Functions & Subroutines > AddAsphere

 

AddAsphere

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a classic aspheric surface to the associated FRED document.

 

Syntax

n = AddAsphere( entity, curv, conic, evens, odds )

 

Parameters

n (Long)

Node number of the added surface.

 

entity As T_ENTITY

The basic entity parameters of the surface.

 

curv As Double

The curvature of the Aspheric surface.  (cv = 1/radius).

 

conic As Double

The conic constant of the Aspheric surface.  0=sphere, -1=parabola, <-1=hyperbola, etc.

 

evens() As Double

Array of the even order coefficients of the Aspheric surface.

 

odds() As Double

Array of the odd order coefficients of the Aspheric surface.

 

 

Remarks

This function adds an Aspheric surface to the associated FRED document and returns the identifier for the added surface.

 

The sag equation of the surface is:

 

 

 

and

 

r = Sqrt( x2 + y2)

 

See Also

T_ENTITY

GetAsphere

SetAsphere

SetAsphereEvenCoef

SetAsphereOddCoef

GetAsphereEvenCoef

GetAsphereOddCoef

Examples

Surfaces

 

 

 

 

 

Copyright © Photon Engineering, LLC