Hi Elizabeth,<br><br>There is probably a better way to do this, but since Orion doesn't have particle support at the moment, I have a routine for drawing the particle at position "r" onto a volume rendered image with arbitrary orientation. <br>
<br><div style="margin-left: 40px;">import numpy as na<br><br>def add_star_projected(r,ax,cam,ms):<br>    """ Adds the particle at position r to Axes ax. Needs information on the orientation of the image plane contained in cam """<br>
    north_vector = cam.unit_vectors[0]<br>    east_vector = cam.unit_vectors[1]<br>    N1 = cam.resolution[0]<br>    N2 = cam.resolution[1]<br>    c = cam.center<br>    r = r - c<br>    W = cam.width[0]<br>    y_pixels = floor(na.dot(r,north_vector) * (N2/W) + N2/2.0)<br>
    x_pixels = floor(na.dot(r,east_vector) * (N1/W) + N1/2.0)<br>    ax.hold(True)<br>    ax.plot([x_pixels],[y_pixels],'wo', markersize = ms)<br>    ax.hold(False)<br>    ax.axis((0,N1,0,N2))<br><br></div>Assuming you're using the Camera interface, that contains all the information you need to do the conversion. If you can get a list of particles w/ their positions (we have our own way of doing this that probably doesn't apply), you can then loop through that and add them at the correct position on the off-axis projection. <br>
<br>Andrew M <br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 6:15 AM, Elizabeth Harper-Clark <span dir="ltr"><<a href="mailto:h-clark@astro.utoronto.ca">h-clark@astro.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br><br>Thanks for all your help over the last couple of days. One more question:<br>    -  Can I plot particles on a volume rendered image?<br>I have stars and I want to show where they are!<br><br>Thanks,<br><br>
Libby<br clear="all"><font color="#888888">
<br>-- <br>Elizabeth Harper-Clark MA MSci<br>PhD Candidate, Canadian Institute for Theoretical Astrophysics, UofT<br>Sciences and Engineering Coordinator, Teaching Assistants' Training Program, UofT<br><br><a href="http://www.astro.utoronto.ca/%7Eh-clark" target="_blank">www.astro.utoronto.ca/~h-clark</a><br>

<a href="mailto:h-clark@cita.utoronto.ca" target="_blank">h-clark@cita.utoronto.ca</a><br>Astronomy office phone: +1-416-978-5759<br>
</font><br>_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br>