From c0127e16d53edb5ffea54e9098f02e19def43c88 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 5 Apr 2018 16:07:37 -0700 Subject: [PATCH] drop excess copy --- chop/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chop/transform.py b/chop/transform.py index ecbb66d..8c77c71 100644 --- a/chop/transform.py +++ b/chop/transform.py @@ -16,7 +16,7 @@ def rotate(poly: poly_t, theta: float, axis: int) -> poly_t: ''' s, c = sin(theta), cos(theta) v0 = poly['vertices'][:, axis - 2].copy() - v1 = poly['vertices'][:, axis - 1].copy() + v1 = poly['vertices'][:, axis - 1] poly['vertices'][:, axis - 2] = c * v0 - s * v1 poly['vertices'][:, axis - 1] = s * v1 + c * v0 return poly