[yt-svn] commit/yt: ngoldbaum: Merged in atmyers/yt (pull request #2293)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 20 08:10:02 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/af17c67b26e2/
Changeset: af17c67b26e2
Branch: yt
User: ngoldbaum
Date: 2016-07-20 15:09:21+00:00
Summary: Merged in atmyers/yt (pull request #2293)
[BUGFIX] Fix a bug that caused users to not be able to change the default camera position for unstructured mesh datasets in the IDV.
Affected #: 1 file
diff -r 40d042d8579aee72aa4580a343448649bcecbb28 -r af17c67b26e29d3e6fdca436a398f3a1fe8641e7 yt/visualization/volume_rendering/interactive_vr_helpers.py
--- a/yt/visualization/volume_rendering/interactive_vr_helpers.py
+++ b/yt/visualization/volume_rendering/interactive_vr_helpers.py
@@ -76,15 +76,16 @@
window_size = (1024, 1024)
if cam_position is None:
cam_position = dobj.ds.domain_right_edge
+ if hasattr(dobj.ds.index, "meshes"):
+ # unstructured mesh datasets tend to have tight
+ # domain boundaries, do some extra padding here.
+ cam_position = 3.0*dobj.ds.domain_right_edge
if cam_focus is None:
cam_focus = dobj.ds.domain_center
rc = RenderingContext(*window_size)
if hasattr(dobj.ds.index, "meshes"):
- # unstructured mesh datasets tend to have tight
- # domain boundaries, do some extra padding here.
- cam_position = 3.0*dobj.ds.domain_right_edge
scene = MeshSceneComponent(dobj, field)
else:
scene = SceneGraph()
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list