differt.em.MaterialsDict

Contents

differt.em.MaterialsDict#

class MaterialsDict(other=(), /, **kwargs)[source]#

Bases: dict[str, Material]

A dictionary subclass mapping material names to material instances with automatic alias support.

This dictionary stores materials keyed by their primary name (Material.name). Indexing, membership checks (in), getting, and deletion using any material alias (defined in Material.aliases) automatically resolve to the primary material.