[Yt-svn] yt: Fixing more vector issues, but now left/right should be corr...

hg at spacepope.org hg at spacepope.org
Fri May 14 20:05:17 PDT 2010


hg Repository: yt
details:   yt/rev/84955a16c71c
changeset: 1674:84955a16c71c
user:      Matthew Turk <matthewturk at gmail.com>
date:
Fri May 14 20:05:11 2010 -0700
description:
Fixing more vector issues, but now left/right should be correct.

diffstat:

 yt/extensions/volume_rendering/camera.py |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 6343c3e467c8 -r 84955a16c71c yt/extensions/volume_rendering/camera.py
--- a/yt/extensions/volume_rendering/camera.py	Fri May 14 18:39:34 2010 -0700
+++ b/yt/extensions/volume_rendering/camera.py	Fri May 14 20:05:11 2010 -0700
@@ -145,14 +145,14 @@
         c = oc.center
         wx = oc.width[0]
         wy = oc.width[1]
-        left_center = c + uv[0] * 0.5*self.relative_separation * wx 
-        right_center = c - uv[0] * 0.5*self.relative_separation * wx
+        left_center = c + uv[1] * 0.5*self.relative_separation * wx 
+        right_center = c - uv[1] * 0.5*self.relative_separation * wx
         left_camera = Camera(left_center, uv[2], oc.width,
-                             oc.resolution, oc.transfer_function, uv[1],
+                             oc.resolution, oc.transfer_function, uv[0],
                              oc.volume, oc.fields, oc.log_fields,
                              oc.sub_samples, oc.pf)
         right_camera = Camera(right_center, uv[2], oc.width,
-                             oc.resolution, oc.transfer_function, uv[1],
+                             oc.resolution, oc.transfer_function, uv[0],
                              oc.volume, oc.fields, oc.log_fields,
                              oc.sub_samples, oc.pf)
         return (left_camera, right_camera)



More information about the yt-svn mailing list