Navigation: Scripting Reference Manual > Functions & Subroutines > ImpSampAddCurve

 

ImpSampAddCurve

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds an importance sampling of type "Scatter rays through a closed curve" to a specific surface.

 

Syntax

impSamp = ImpSampAddCurve ( n, iname, curve )

 

Parameters

impSamp (Long)

The index (zero based) into the list of the surface's new importance sampling.

 

n As Long

Node number of the surface.

 

iname As String

Name of the new importance sampling type. See ImpSampGetType for type designations.

 

curve As Long

Node number of the closed curve towards which the rays will scatter.

 

Remarks

This function adds to a specific surface an importance sampling of type "Scatter rays through a closed curve". If there is a problem the function sets an error and returns -1.

 

See Also

ImpSampGetCurve

ImpSampSetCurve

ImpSampGetType

Examples

Importance Samples

 

 

 

 

 

Copyright © Photon Engineering, LLC