Hey,
I was looking for the “proper” way to update vertex coordinates of a Mesh
; and the documented examples show the following:
for key, attr in mesh.vertices(True):
attr['x'] = vertices[key][0]
attr['y'] = vertices[key][1]
attr['z'] = vertices[key][2]
Since getting and setting vertex attributes, and it particular its coords seems to be a fairly common operation (see also this thread), wouldn’t it make sense to add get_vertex_attributes
and set_vertex_attributes
methods to Mesh
to manipulate them easily? And since coords are probably very, very often used, maybe also consider adding syntactical sugar methods for get_vertex_coords
and set_vertex_coords
specifically.
Cheers