Description Adds an importance sampling with type "Scatter rays toward a point" to a specific surface.
Syntax impSamp = ImpSampAddPos ( n, iname, angle, x, y, z, entity )
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 The name of the new importance sampling.
angle As Double Sets the semi-angle (in degrees) of the solid angle cone.
x As Double Sets the X component of the position vector.
y As Double Sets the Y component of the position vector.
z As Double Sets the Z component of the position vector.
entity As Long Sets the node number of the FRED entity whose coordinate system will be used to orient x,y and z.
Remarks This function adds to a specific surface an importance sampling with type "Scatter rays toward a point". If there is a problem the subroutine returns -1 and does not set an error.
See Also Examples
|