GetLayersByFunction

IEnumerable<CompoundStructureLayer> GetLayersByFunction(this CompoundStructure cs, MaterialFunctionAssignment function)

Gets all layers with a specific function.

Parameters

  • csCompoundStructure

    The compound structure.

  • functionMaterialFunctionAssignment

    Desired layer function.

Returns: Matching layers (empty if none).

Example

var structure = cs.GetLayersByFunction(MaterialFunctionAssignment.Structure);