Navigation: Scripting Reference Manual > Functions & Subroutines > AddSamplePoint

 

AddSamplePoint

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a sample point to a Sampled Material.

 

Syntax

AddSampledMaterialWavelength id, wave, real, imag

 

Parameters

id (Long)

The identifier of the T_SAMPLEDMATERIAL you want to modify.

 

wave (Double)

The wavelength of the new sample point.

 

real (Double)

The real part of the refractive index at the given wavelength.

 

imag (Double)

The imaginary part of the refractive index at the given wavelength.

 

Remarks

This subroutine adds a sample point to a Sampled Material. If there is a problem the subroutine sets an error and returns without modifying the Sampled Material. This subroutine requires an associated FRED document.

 

See Also

AddSampledMaterial

GetSampledMaterial

SetSampledMaterial

T_SAMPLEDMATERIAL

Examples

Materials

 

 

 

 

 

Copyright © Photon Engineering, LLC