Navigation: Scripting Reference Manual > Functions & Subroutines > MPCAdvancedRaytrace

 

MPCAdvancedRaytrace

 

Contact Us: fredsupport@photonengr.com

 

Description

This function performs an MPC Trace Advanced call, using a T_MPCADVANCEDRAYTRACE structure to configure the options.

 

Syntax

err = MPCAdvancedRaytrace( tMPC )

 

 

Parameters

err ( Huge_ )

Returned error error code, where a 0 indicates no error.

 

tMPC As T_MPCADVANCEDRAYTRACE

Input argument that configures the options used during the MPC Trace Advanced function call.

 

Example

The following example initializes the T_MPCADVANCEDRAYTRACE data structure, sets the raytrace action type to "GPU", forces the raytrace to be Monte-Carlo, and requests an output logfile be generated.

 

Sub Main

 

    Dim mpcErr As Huge_

    Dim tMPC As T_MPCADVANCEDRAYTRACE

    MPCInitAdvancedRaytrace( tMPC )

 

    tMPC.action          = "GPU" 'Use GPUs to generate starting rays

    tMPC.forceMonteCarlo = True 'Overrides raytrace properties

    tMPC.log             = True

 

    mpcErr = MPCAdvancedRaytrace( tMPC )

    Print "MPC error code = " & mpcErr

 

End Sub

 

See Also

MPCRaytrace

MPCInitAdvancedRaytrace

T_MPCADVANCEDRAYTRACE

MPCGetRaySumMode

MPCSetRaySumMode

 

 

 

 

 

Copyright © Photon Engineering, LLC