ForceVolMesh.edge_attribute
- ForceVolMesh.edge_attribute(edge, name, value=None)
Get or set an attribute of an edge.
- Parameters
edge (tuple of int) – The edge identifier.
name (str) – The name of the attribute.
value (obj, optional) – The value of the attribute. Default is
None
.
- Returns
object or None – The value of the attribute, or
None
when the function is used as a “setter”.- Raises
KeyError – If the edge does not exist.