comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » trajectory plot behind sphere
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
trajectory plot behind sphere [message #42623] Thu, 17 February 2005 06:41
Ralf Schaa is currently offline  Ralf Schaa
Messages: 37
Registered: June 2001
Member
Hi folks,

I am plotting a trajectory of a spacecraft orbit which is partially
going behind a sphere (the planet). This part, which is actually behind
the sphere is drawn right in front of the plot, but I like to have this
part of the trajectory invisble.
How can this be done?

Thanks already
-Ralf

my piece of code:

; set up 3d
Xcnt = N_Elements(X1)
Ycnt = N_Elements(X2)
Zcnt = N_Elements(X3)
Surface, FltArr(Xcnt,Xcnt), X1, X2 , $
Xrange=[-5,5] , Yrange=[-5,5], ZRange=[-5,5], $
XStyle=4, YStyle=4, ZStyle=4, TICKLEN=1, /SAVE, /NODATA

; the sphere
sphere = fltarr(20,20,20)
for x=0,19 do for y=0,19 do for $
z=0,19 do sphere[x,y,z]=sqrt((x-10)^2 + (y-10)^2 + (z-10)^2)

shade_volume, sphere, 8, v , p
v=0.1d*(v-10)
image = polyshade(v, p, /t3d)
tv,image

; draw trajectory
Plots, X1, X2, X3 , color=8, /T3D

; axis through midpoint
AXIS, 0,0,0, /XAxis, /T3D, CharSize=2.5, color=3, xtickformat='(i8)'
AXIS, 0,0,0, /YAxis, /T3D, CharSize=2.5, color=3, ytickformat='(i8)'
AXIS, 0,0,0, /ZAxis, /T3D, CharSize=2.5, color=3, ztickformat='(i8)'
[Message index]
 
Read Message
Previous Topic: Re: dll not loading
Next Topic: dll not loading

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:10:02 PDT 2025

Total time taken to generate the page: 4.76348 seconds