<div dir="ltr">Matt<div><br></div><div>For the moment, anything that works would be fine. I always selecting full cells is easier I'd be happy to try this first.</div><div><br></div><div>-erik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 9:53 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Erik,<br>
<br>
Thanks, this helps.  This means that for the specific case of your<br>
data, we will need to use a different selection method than that used<br>
for finite element data, where we select full cells rather than<br>
allowing partial selection.  Instead of "rounding up" we should be<br>
using a method similar to particle selection, where discrete points<br>
are sampled.<br>
<br>
For the case of changing a set of points into a pixel buffer, this<br>
means we will use nearest-neighbor interpolation (with no sub-cellular<br>
interpolation).  This should be straightforward, as it will suffice to<br>
define an edge of a zone (which will be truncated at boundaries) and<br>
width, which we do already for cell-centered data.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Nov 11, 2015 at 8:50 AM, Erik Schnetter <<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</a>> wrote:<br>
> Matt<br>
><br>
> In my notion, there are no cells, only vertices. Or if you want to renaming<br>
> things, then there are only cells, no vertices, but the fine a coarse grid<br>
> cells do not share faces.<br>
><br>
> To answer your question specifically: no, it does not matter whether  the<br>
> centre of a "cell" is selected. Only the vertices that are selected should<br>
> be part of the selection.<br>
><br>
> -erik<br>
><br>
> On Wed, Nov 11, 2015 at 8:57 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi Erik,<br>
>><br>
>> I have some ideas about this, but it relies heavily on the notion of<br>
>> how to regard "vertices" as separate from "cells", or if they should<br>
>> not be.  In terms of things like visualization, vertex centered data<br>
>> is not a huge leap in functionality, but in terms of data selection we<br>
>> need to be careful.  The canonical question is, if you have a region<br>
>> selector that includes the *center* of a zone, should all of its<br>
>> vertices be selected?  For instance, imagine you have a region<br>
>> selector whose corner resides at the center of a (3D) cell.  Does one<br>
>> select all eight vertices, since the "cell" is nominally selected, or<br>
>> just the one vertex that is included?  If we can answer that, we can<br>
>> start the work of implementing.<br>
>><br>
>> On Tue, Nov 10, 2015 at 7:11 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> ><br>
>> > On Tuesday, November 10, 2015, Erik Schnetter <<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> I have implemented a front-end for cell-centred Cactus AMR data.<br>
>> >><br>
>> ><br>
>> > Awesome! We'd love to have this in the public distribution of yt.<br>
>> ><br>
>> >><br>
>> >><br>
>> >> However, many Cactus simulations use vertex-centred AMR. That is, data<br>
>> >> is<br>
>> >> stored at the vertices of a grid (not in the cells), and coarse<br>
>> >> vertices are<br>
>> >> at the same locations as fine vertices.<br>
>> >><br>
>> >> How do I present such data to yt? Do I need to set grid coordinates<br>
>> >> differently, or is there a "vertex centred" flag?<br>
>> >><br>
>> >> When vertex-centred data are displayed, then I expect either a "control<br>
>> >> volume" around each vertex to have the same value, or to use e.g.<br>
>> >> linear<br>
>> >> interpolation in the cells from the respective boundaries.<br>
>> ><br>
>> ><br>
>> > We don't have good support for vertex-centered AMR data. I think Matt<br>
>> > would<br>
>> > have a better idea of what approaches we might take here.<br>
>> ><br>
>> >><br>
>> >><br>
>> >> -erik<br>
>> >><br>
>> >> --<br>
>> >> Erik Schnetter <<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</a>><br>
>> >> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" rel="noreferrer" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > yt-dev mailing list<br>
>> > <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
>> > <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
>> ><br>
>> _______________________________________________<br>
>> yt-dev mailing list<br>
>> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Erik Schnetter <<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</a>><br>
> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" rel="noreferrer" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br>
><br>
> _______________________________________________<br>
> yt-dev mailing list<br>
> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Erik Schnetter <<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div>