GetLayerFunction
MaterialFunctionAssignment GetLayerFunction(this CompoundStructure cs, int layerIndex)Gets the function of a specific layer.
Parameters
- csCompoundStructure
The compound structure.
- layerIndexint
The layer index.
Returns: The layer's MaterialFunctionAssignment.
Example
var fn = cs.GetLayerFunction(0);