dkobozev/tatlin — Issue #1: Does not import gcode in Ubuntu 10.04 due to old numpy
Author: fukanchik
Created: 2012-01-29 18:09:39+00:00
State: open

This is due to the lack of dot() method in matrix.

Below is diff which makes it work:

diff --git a/libtatlin/vector.py b/libtatlin/vector.py
index 45bd5ad..0584910 100644
--- a/libtatlin/vector.py
+++ b/libtatlin/vector.py
@@ -56,6 +56,6 @@ def rotate(vertices, angle, x, y, z):
_rotation_matrix_cache[key] = rotation_matrix(angle, x, y, z)

matrix = _rotation_matrix_cache[key]
- rotated = vertices.dot(matrix)
+ rotated = numpy.dot(vertices, matrix)
return rotated