Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Graph editor seems to be working in sage 5.8 :)

The code you posted seems to work, except that you need to multiply rot_matrix by vector(vert_pos[i]). If you really insist on having tuples instead of matrices for the positions you can try changing

for i in vert_pos:
    new_pos[i] = rot_matrix * vector(vert_pos[i])


for i in vert_pos:
    new_pos[i] = tuple(rot_matrix * vector(vert_pos[i]))