<div dir="ltr">If you can define your surface in terms of field values, you can use a cut_region data object:<div><br></div><div><a href="http://yt-project.org/doc/analyzing/filtering.html#cut-regions">http://yt-project.org/doc/analyzing/filtering.html#cut-regions</a><br></div><div><br></div><div><a href="http://yt-project.org/doc/reference/api/generated/yt.data_objects.selection_data_containers.YTCutRegion.html#yt.data_objects.selection_data_containers.YTCutRegion">http://yt-project.org/doc/reference/api/generated/yt.data_objects.selection_data_containers.YTCutRegion.html#yt.data_objects.selection_data_containers.YTCutRegion</a><br></div><div><br></div><div>I don't think there is a way to create a data object from a triangulated surface. In principle it would be possible to add by creating a new data object and adding new hooks to cython geometric selector API, but that has not yet been implemented.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 3:26 PM, Slavin, Jonathan <span dir="ltr"><<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi all,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I'm looking for a way to find all the grid points in a volume, or really within a surface.  I can get the surface using skimage.measure.marching_cubes (or I guess from the surface method of a data source).  That is, it provides vertices that define a surface.  What I then want to know is which grid points for an array that covers the simulation volume (fixed resolution array) are within that volume.  It appears that yt is set up to calculate the flux across an isocontour, but I don't see anything related to the volume within it.  Any help would be appreciated.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Jon</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-4778142026529575722gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">______________________________<wbr>__________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a>       Cambridge, MA 02138-1516<br>cell: <a href="tel:%28781%29%20363-0035" value="+17813630035" target="_blank">(781) 363-0035</a>             USA<br>______________________________<wbr>__________________________<br><br></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>