Description This subroutine retrieves the single/double precision state of the MPC raytrace from the document. This state does not apply to the MPC Advanced Raytrace, which has its own flag determining the precision mode of the advanced raytrace.
Syntax MPCGetSimpleTraceMode( mpcMode )
Parameters mpcMode As String After the function is executed, the mpcMode variable string will be updated to indicate the current MPC raytrace precision state from the document. Return value is one of either "single" or "double". A return value of "single" indicates that an MPCRaytrace() function call (or the equivalent GUI menu options MPC > MPC Trace CPU Rays and MPC > MPC Trace GPU Rays) is performed with single float precision (32-bit). A return value of "double" indicates that an MPCRaytrace() function call is performed with double float precision (64-bit).
Example The following example shows how the single/double precision state of an MPC raytrace can be retrieved from a document and then modified prior to calling a simple (i.e. non-advanced raytrace) MPC raytrace.
Sub Main
'Retrieve and report current precision mode Dim mpcMode As String MPCGetSimpleTraceMode( mpcMode ) Print "Current MPC raytrace precision mode is " & mpcMode
'Set the mode to double precision and raytrace MPCSetSimpleTraceMode( "double" ) Update MPCRaytrace( "GPU" )
End Sub
See Also
|