Hi Tomer,<br><br>On Tuesday, November 3, 2015, Tomer Nussbaum <<a href="mailto:tomer.nussbaum@mail.huji.ac.il">tomer.nussbaum@mail.huji.ac.il</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Hey guys,</div><div><br></div><div>I continue to work on the 3D thing, and I have a few questions, it would be <b><u><font color="#0000ff">super helpful </font></u></b>if you can answer me, even for some of my questions. So if you even have a hint I would like to hear about it.</div><div><br></div><div>Thats what I have now: <a href="https://sketchfab.com/models/d267102434274bdbb5f75f5b9ef27b44" target="_blank">ART example</a>, so with some help I might succeed.</div><div><br></div><div>Thanx,<br>Tomer</div><div><br></div><div><br></div><div>0. <span style="color:rgb(0,0,0)">What is the main reason that </span><font color="#000000">_extract_isocontours_from_grid doesn't work on ART? <br>is it just not implemented? is there another big problem beneath it? is it related to KDTree?</font></div><div>How come ENZO work and ART doesn't?</div></div></blockquote><div><br></div><div>So here's the big issue, which underlies the rest: the only indexing scheme that has ghost zones implemented is the patch grid frontend.  So it will work with Enzo, FLASH, Athena, ..., but ART uses octrees, for which we haven't implemented.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font color="#000000"><br></font></div><div>1. What is the ghost zones idea? does it work on ENZO? does it work on ART OcTree data?</div><div><br></div></div></blockquote><div><br></div><div>The reason we use ghost zones (which can be avoided by specifying use_ghost=False) is to avoid extrapolating at the edges.  The isocontour extraction needs to take place within vertex data.  The way the marching cubes algorithm works is to look at the relative values of the eight corners of a cube, then determine how to insert one or more surfaces to create an isocontour.</div><div><br></div><div>By using ghost zones, we can get a considerably higher-order vertex centering of the data.  Without them, the isocontours are usually cracky and broken.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>2. Can ghost_zone_interpolate work on OcTree? on OctreeSubsetBlockSlice? </div><div><br></div></div></blockquote><div><br></div><div>In principle, yes.  But it will require work.  What will be needed is a mechanism for taking an OctreeSubset object (in ART there may be only *one* of these, which will ease the process considerably) and then filling in an additional layer of cells inside each oct during the filling process.  To do this, something like the following would need to occur:</div><div><br></div><div> * Create a new grid_visitors function that accepts the neighbors to a given oct as well as the oct itself</div><div> * Compute the neighbors in advance, filling in an array with their indices, with the .neighbors operation</div><div> * Examine those neighbors, filling them in, and return that.</div><div><br></div><div>The problem with this is that it touches a lot of relatively tedious code that has a low bus factor.  And right now I can't dedicate the time to doing it, although it is important and I would like to.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>3. In get_vertex_centered_data, it gets from ENZO  6X6X6 data blocks, is it true that one of the differences between ENZO and ART,</div><div>is that the adaptive mesh of Art is divided to 2X2X2 but ENZO has 6X6X6?</div><div><br></div></div></blockquote><div><br></div><div>Enzo will have variable sizes.  In general, the main difference from yt's perspective between Oct and Patch data is that Oct data is handled as a set of octs, and patch data is handled on each patch individuals.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><div><font color="#cccccc">The code I look at is in "construction_data_containers.py" YTSurfaceBase.get_data(..) function</font></div><div><font color="#cccccc">line 1031: for block, mask in self.data_source.blocks:</font></div></div><div><br></div><div>4. What is main idea of the classes AMRGridPatch(YTSelectionContainer), OctreeSubsetBlockSlice(object), </div><div>OctreeSubset(YTSelectionContainer)? what is the difference between them?</div><div>doesn't OctreeSubsetBlockSlice supposed to inherite OctreeSubset?<br></div></div></blockquote><div><br></div><div>The OctreeSubsetBlockSlice is a means of making Octs look a bit like Patches ... and it's slow to use it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font color="#cccccc">while calling self.data_source.blocks for ENZO I get AMRGridPatch and for ART I get OctreeSubsetBlockSlice.<br>but AMRGridPatch inherits from YTSelectionContainer as OctreeSubset. different to OctreeSubsetBlockSlice which inherits from object...</font></div><div><font color="#cccccc"><br>The code I look at is in "construction_data_containers.py" YTSurfaceBase.get_data(..) function</font></div><div><font color="#cccccc">line 1031: for block, mask in self.data_source.blocks:</font></div><div><br></div></div>
</blockquote>