VolMesh.edges_attribute

VolMesh.edges_attribute(name, value=None, edges=None)[source]

Get or set an attribute of multiple edges.

Parameters
  • name (str) – The name of the attribute.

  • value (obj, optional) – The value of the attribute. Default is None.

  • edges (list of 2-tuple of int, optional) – A list of edge identifiers.

Returns

list or None – A list containing the value per edge of the requested attribute, or None if the function is used as a “setter”.

Raises

KeyError – If any of the edges does not exist.