Navigation: Scripting Reference Manual > Functions & Subroutines > GetSurfMaterials

 

GetSurfMaterials

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the two materials that are assigned to a specific surface.

 

Syntax

GetSurfMaterials n, mtrl1, mtrl2

 

Parameters

n As Long

Node number for the surface.

 

mtrl1 As Long

The identifier of the first material assigned to the specified surface.

 

mtrl2 As Long

The identifier of the second material assigned to the specified surface.

 

Remarks

This subroutine retrieves the two materials that are associated with a specific surface.  If there is a problem, the subroutine posts an error and returns without modifying the parameters.

 

See Also

GetSurfIthScatter

GetSurfScatterCount

GetSurfRaytraceCtrl

GetSurfCoating

Examples

Surfaces

 

 

 

 

 

Copyright © Photon Engineering, LLC