Navigation: Scripting Reference Manual > Functions & Subroutines > ARNGetCellValueAsDoubleArray2D

 

ARNGetCellValueAsDoubleArray2D

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the cell value of an ARN and copies the values into a 1D array.  This feature is useful for retrieving results from analyses with multiple dimensions such as Color Image.

 

 

Syntax

ARNGetCellValueAsDoubleArray2D arnNode, nA, nB, data()

 

 

Parameters

arnNode As Long

Node number of the ARN being queried.

 

nA As Long

nth cell along the A-axis.

 

nB As Long

nth cell along the B-axis.

 

data( ) As Double

1D array containing the data from cell nA,nB.

 

 

Example

The following example computes a color image (using existing rays), writes the results to a *.fgd file, loads the file back into an ARN and then queries the ARN for a specific set of cell values.

 

Dim data() As Double

 

numRays = ColorImageToFileAS( 12, GetDocDir() & "\color_image.fgd" )

arnNode = ARNCreateFromFile( GetDocDir() & "\color_image.fgd", "newARN" )

ARNGetCellValueAsDoubleArray2D arnNode, 64, 64, data()

 

 

See Also

ARNCreateFromFile

ColorImageToFileAS

All ARN Scripting Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC