Navigation: Scripting Reference Manual > Functions & Subroutines > SetAsphere

 

SetAsphere

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the data for a specified aspheric surface in the associated FRED document.

 

Syntax

SetAsphere n, entity, curve, conic, evens, odds

 

Parameters

n As Long

Node number of the Asphere surface.

 

entity As T_ENTITY

The generic entity data for the Asphere.

 

curve As Double

The new curvature for the Asphere.

 

conic As Double

The new conic constant for the Asphere.

 

evens() As Double

The array to be loaded with new even aspheric coefficients for the Asphere.

 

odds() As Double

The array to be loaded with new odd aspheric coefficients for the Asphere.

 

Remarks

This subroutine sets the data for a specified aspheric surface in the associated FRED document. If there is a problem, the subroutine posts an error and returns without setting the Asphere surface.

 

See Also

T_ENTITY

AddAsphere

GetAsphere

GetAsphereEvenCount

GetAsphereOddCount

GetAsphereEvenCoef

GetAsphereOddCoef

SetAsphereEvenCoef

SetAsphereOddCoef

Examples

Surfaces

 

 

 

 

 

Copyright © Photon Engineering, LLC