VolMesh3gs.vertices_attributes
- VolMesh3gs.vertices_attributes(names=None, values=None, vertices=None)
Get or set multiple attributes of multiple vertices.
- Parameters
names (list of str, optional) – The names of the attribute. Default is
None
.values (list of obj, optional) – The values of the attributes. Default is
None
.vertices (list of int, optional) – A list of vertex identifiers.
- Returns
list or None – If the parameter
names
isNone
, the function returns a list containing an attribute dict per vertex. If the parameternames
is notNone
, the function returns a list containing a list of attribute values per vertex corresponding to the provided attribute names. The function returnsNone
if it is used as a “setter”.- Raises
KeyError – If any of the vertices does not exist.