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

Home » Public Forums » archive » An object graphics problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: An object graphics problem [message #36213 is a reply to message #36023] Mon, 11 August 2003 10:49 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Gethyn Lewis" <grl@mssl.ucl.ac.uk> wrote in message
news:b2007222.0308110253.46f57d7d@posting.google.com...
> Hi IDL Experts
> I'm new to IDL programming and am stuck. My problem is this:
> I have a (360, 18) array of numbers which I can wrap around a sphere
> to display them with 360 cells of longitude and 18 cells of latitude.
> I do this by using a spherical mesh_grid and wrap that around an
> IDLgrPolygon object using the original array as vert_colors having
> converted it to bytscl. This works fine. Then I draw a vector that
> starts at the sphere's centre and exits the sphere through one of the
> mesh_grid cells. I do this using IDLgrPolyline centered on [0,0,0] and
> make it long enough to come through the sphere. This also works fine.
> Now I want to cut the sphere with a plane that is perpendicular to the
> vector and goes through the spheres centre and then be able to look
> down the vector and see the data around the edge of the newly cut
> sphere. Eventually there will be other spheres within the original, 60
> of them in fact, so that eventually, I will be able to see 60
> concentric circles about the vector that are colored according to the
> original array. Any ideas?

You may want to take a look at the CLIP_PLANES property. It will be very
easy to position a clipping plane at your origin and orient it as you
describe. You can use this plane to clip the "front" half of the spheres
and then you'll see the concentric half-spheres nested behind the clip
plane. This might give you what you want if you want filled rings or bands.
If you want really narrow rings, then maybe a second clip plane located a
bit behind the front plane that clips almost the entire back half of the
spheres might work.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Embedding colour IDL syntax in Word
Next Topic: Can one test if the GIF license installed?

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

Current Time: Fri Oct 10 19:33:30 PDT 2025

Total time taken to generate the page: 0.56318 seconds