GetLayerMaterial
Material GetLayerMaterial(this CompoundStructure cs, int layerIndex, Document doc)Gets the material of a specific layer.
Parameters
- csCompoundStructure
The compound structure.
- layerIndexint
The layer index.
- docDocument
The document used to resolve the material.
Returns: The layer Material, or null if unavailable.
Example
Material mat = cs.GetLayerMaterial(0, doc);