VolMesh.vertices_attribute

VolMesh.vertices_attribute(name, value=None, vertices=None)[source]

Get or set an attribute of multiple vertices.

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

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

  • vertices (list[int], optional) – A list of vertex identifiers.

Returns

list[Any] | None – The value of the attribute for each vertex, or None if the function is used as a “setter”.

Raises

KeyError – If any of the vertices does not exist.