From 8bbdf7f53b918857a09a9bee4a158f13834bfce6 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Thu, 2 Jun 2011 15:00:26 -0400 Subject: triangle mesh is now stored everywhere as a split list of vertices and triangles --- transform.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'transform.py') diff --git a/transform.py b/transform.py index ef8c96c..4793c0f 100644 --- a/transform.py +++ b/transform.py @@ -17,8 +17,4 @@ def rotate(x, phi, n): Rotate an array of points `x` through an angle phi counter-clockwise around the axis `n` (when looking towards +infinity). """ - x = np.asarray(x) - - r = make_rotation_matrix(phi, n) - - return np.inner(x,r) + return np.inner(np.asarray(x),make_rotation_matrix(phi, n)) -- cgit