Skip to content

Commit

Permalink
Merge pull request davidwhogg#11 from stonebig/patch-1
Browse files Browse the repository at this point in the history
python3 compatibility
  • Loading branch information
davidwhogg authored Aug 16, 2018
2 parents 0c2d023 + 8a9d192 commit e62c018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def project_points(points, q, view, vertical=[0, 1, 0]):
dpoint_view = np.dot(dpoint, view).reshape(dpoint.shape[:-1] + (1,))
dproj = -dpoint * v2 / dpoint_view

trans = range(1, dproj.ndim) + [0]
trans = list(range(1, dproj.ndim)) + [0]
return np.array([np.dot(dproj, xdir),
np.dot(dproj, ydir),
-np.dot(dpoint, zdir)]).transpose(trans)

0 comments on commit e62c018

Please sign in to comment.