ForceVolMesh.cell_attributes
- ForceVolMesh.cell_attributes(cell, names=None, values=None)
Get or set multiple attributes of a cell.
- Parameters
cell (int) – The identifier of the cell.
names (list, optional) – A list of attribute names.
values (list, optional) – A list of attribute values.
- Returns
dict, list or None – If the parameter
names
is empty, a dictionary of all attribute name-value pairs of the cell. If the parameternames
is not empty, a list of the values corresponding to the provided names.None
if the function is used as a “setter”.- Raises
KeyError – If the cell does not exist.