[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 20 08:10:04 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/2d88c894258e/
Changeset: 2d88c894258e
Branch: yt
User: atmyers
Date: 2016-07-19 21:08:04+00:00
Summary: [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 d5370abb4e58e08220904367f8383b7e22d8e9bc -r 2d88c894258eae8609e5eb5cc071153d589e9f5f 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()
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