RemoveLayersByMaterial
int RemoveLayersByMaterial(this CompoundStructure cs, Material material)Removes all layers with a specific material.
Parameters
- csCompoundStructure
The compound structure.
- materialMaterial
Material to remove.
Returns: Number of removed layers.
Example
int removed = cs.RemoveLayersByMaterial(mat);