Navigation: Scripting Reference Manual > Functions & Subroutines > AddMirror

 

AddMirror

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a mirror to the associated FRED document.

 

Syntax

n = AddMirror ( entity, mirror )

 

Parameters

n (Long)

Node number of the newly added mirror.

 

entity As T_ENTITY

Holds the basic entity data for the new mirror.

 

mirror as T_MIRROR

Structure containing optical data specific to the new mirror.

 

 

Remarks

This function adds a mirror to the associated FRED document. If there is a problem the function sets an error and returns -1 without modifying the associated FRED document.

 

See Also

T_ENTITY

T_MIRROR

InitMirror

GetMirror

SetMirror

GetMirrorCurv

SetMirrorCurv

GetMirrorFocalLen

SetMirrorFocalLen

Examples

Elements

 

 

 

 

 

Copyright © Photon Engineering, LLC