VolMesh.cells_attributes
- VolMesh.cells_attributes(names=None, values=None, cells=None)[source]
Get or set multiple attributes of multiple cells.
- Parameters
names (list of str, optional) – The names of the attribute. Default is
None
.values (list of obj, optional) – The values of the attributes. Default is
None
.cells (list of int, optional) – A list of cell identifiers.
- Returns
dict, list or None – If the parameter
names
isNone
, a list containing per cell an attribute dict with all attributes (default + custom) of the cell. If the parameternames
isNone
, a list containing per cell a list of attribute values corresponding to the requested names.None
if the function is used as a “setter”.- Raises
KeyError – If any of the faces does not exist.