Navigation: Scripting Reference Manual > Functions & Subroutines > SetDiffusePolynomial

 

SetDiffusePolynomial

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the values of a Diffuse Polynomial Scatter model.

 

Syntax

SetDiffusePolynomial id, scat, coefs

 

Parameters

id As Long

Identifier of the scatter model.

 

scat As T_DIFFUSEPOLYNOMIAL

Structure containing the new basic data for the Diffuse Polynomial.

 

coefs() As Double

The coefficients of the polynomial summation (stored in the order in which they appear in the summation).

 

Remarks

This subroutine sets the values of a Diffuse Polynomial Scatter model.  If there is a problem, the subroutine sets an error and returns without modifying the scatter model.  See T_DIFFUSEPOLYNOMIAL for the mathematical form of the scatter function.

 

See Also

T_DIFFUSEPOLYNOMIAL 

AddDiffusePolynomial

InitDiffusePolynomial

GetDiffusePolynomial

Examples

Scatter

 

 

 

 

 

Copyright © Photon Engineering, LLC