<div dir="ltr">Hi Sam,<div><br></div><div>Embree/pyembree are only useful for unstructured mesh data, *not* hexahedral mesh data. I don't think support for volume rendering hexahedral mesh data has been added to yt.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 10:41 AM, Samuel Jones <span dir="ltr"><<a href="mailto:samuel.jones@h-its.org" target="_blank">samuel.jones@h-its.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear yt-users,<br>
<br>
I have had generally a very smooth ride in the past using yt for volume rendering of data on a uniform Cartesian grid. Now, however, I am trying to do similar things with data on a non-uniform Cartesian grid, having loaded it in with load_hexahedral_mesh.<br>
<br>
I managed to get embree, pyembree built together with yt version 3.3-dev. I can create the hexahedral dataset with no problem (at least no errors), but when I try to create a scene in which to do some volume rendering I get the error copied below. I think I must doing something wrong but I don't know what!<br>
<br>
Thanks and Best Wishes,<br>
Sam<br>
<br>
<br>
---------------------------------------------------------------------------<br>
ValueError                                Traceback (most recent call last)<br>
<ipython-input-11-e24c1c1430d9> in <module>()<br>
----> 1 sc = yt.create_scene(ds,'lset')<br>
<br>
/home/swj/softs/yt/yt/visualization/volume_rendering/volume_rendering.pyc in create_scene(data_source, field, lens_type)<br>
     72<br>
     73     if hasattr(data_source.ds.index, "meshes"):<br>
---> 74         source = MeshSource(data_source, field=field)<br>
     75     else:<br>
     76         source = VolumeSource(data_source, field=field)<br>
<br>
/home/swj/softs/yt/yt/visualization/volume_rendering/render_source.pyc in __init__(self, data_source, field)<br>
    369<br>
    370         self.scene = mesh_traversal.YTEmbreeScene()<br>
--> 371         self.build_mesh()<br>
    372<br>
    373     def cmap():<br>
<br>
/home/swj/softs/yt/yt/visualization/volume_rendering/render_source.pyc in build_mesh(self)<br>
    421         """<br>
    422         ftype, fname = self.field<br>
--> 423         mesh_id = int(ftype[-1]) - 1<br>
    424         index = self.data_source.ds.index<br>
    425         offset = index.meshes[mesh_id]._index_offset<br>
<br>
ValueError: invalid literal for int() with base 10: 'm'<br>
<br>
<br>
*****************************************<br>
some debug:<br>
<br>
> /home/swj/softs/yt/yt/visualization/volume_rendering/render_source.py(423)build_mesh()<br>
    422         ftype, fname = self.field<br>
--> 423         mesh_id = int(ftype[-1]) - 1<br>
    424         index = self.data_source.ds.index<br>
<br>
ipdb> print ftype<br>
stream<br>
ipdb> self.field<br>
('stream', 'lset')<br>
ipdb> exit<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Samuel Jones<br>
Physik stellarer Objekte | Physics of Stellar Objects<br>
Heidelberger Institut für Theoretische Studien | Heidelberg Institute for Theoretical Studies<br>
<a href="mailto:samuel.jones@h-its.org" target="_blank">samuel.jones@h-its.org</a><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</font></span></blockquote></div><br></div>