C_CalculateDiffraction

C_CalculateDiffraction is called to perform a diffraction calculation after creating and populating a diffraction object, or loading existing diffraction data with C_LoadDiffractionData. Results of the calculation are obtained by calling C_GetDiffractionOutput. The results can be saved to file by calling C_LoadDiffractionResults.

void C_CalculateDiffraction(

TOrcFxAPIHandle DiffractionHandle,

TStringProgressHandlerProc DiffractionProgressHandlerProc,

int *lpStatus

);

Parameters

DiffractionHandle (IN)

The diffraction handle returned by C_CreateDiffraction.

DiffractionProgressHandlerProc (IN)

A callback function to handle notifications of the progress of the diffraction calculation. If you do not want to receive such notifications, pass NULL.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Unicode and ANSI

The Unicode function name is C_CalculateDiffractionW and the ANSI function name is C_CalculateDiffractionA.

See also

C_ResetDiffraction.