HalfEdge.vertices_attributes
- HalfEdge.vertices_attributes(names=None, values=None, keys=None)[source]
Get or set multiple attributes of multiple vertices.
- Parameters
names (list[str], optional) – The names of the attribute.
values (list[Any], optional) – The values of the attributes.
keys (list[int], optional) – A list of vertex identifiers.
- Returns
list[dict[str, Any]] | list[list[Any]] | None – If the parameter names is empty, the function returns a list containing an attribute dict per vertex. If the parameter names is not empty, the function returns a list containing a list of attribute values per vertex corresponding to the provided attribute names. The function returns None if it is used as a “setter”.
- Raises
KeyError – If any of the vertices does not exist.