Re: 3D density plot? [message #30764 is a reply to message #30621] |
Tue, 14 May 2002 21:36  |
Paul Sorenson
Messages: 48 Registered: May 2002
|
Member |
|
|
You may want to add the HIDE keyword in xvolume.pro as shown here:
78 oVol->GetProperty, $
79 rgb_table0=rgb_table0, $
80 opacity_table0=opacity_table0, $
81 hide=hide
82 obj_destroy, oVol
83 oVol = obj_new('IDLgrVolume', $
84 keyword_set(test) ? $
85 congrid(bytscl(randomu((seed=0), 4, 4, 4)), 40, 40, 20)
$
86 : vol, $
87 /zbuff, $
88 interpolate=interpolate, $
89 hints=2, $
90 /zero_opacity_skip, $
91 /no_copy, $
92 opacity_table0=opacity_table0, $
93 hide=hide, $
94 rgb_table0=rgb_table0 $
95 )
"Paul Sorenson" <aardvark62@msn.com> wrote in message
news:3ce16e65_1@corp-goliath.newsgroups.com...
> Here is a way you could do the animation:
>
> pro example, dd
>
> d = dd
> sz = size(d, /dimensions)
> for i=0,sz[0]-1 do begin
> xvolume, d, /replace
> filename = 'img' + strcompress(i, /remove_all) + '.bmp'
> ; xvolume_write_image, filename, 'bmp'
> d = shift(d, 1, 0, 0)
> end
>
> end
>
> IDL> d=randomu(s,5,5,5)
> IDL> d=bytscl(congrid(d,50,25,25))
> IDL> xvolume,d ;set your isosurface etc.
> IDL> example,d
>
> -Paul Sorenson
>
> "Bernard K." <bknaepen@'skip_this'mac.'and_this'com> wrote in message
> news:130520022020445831%bknaepen@'skip_this'mac.'and_this'co m...
>>
>> Dear David,
>> this is not what I have in mind. I browsed the web and found an example:
>> http://www-fpc.stanford.edu/~bewley/movies/intro_25.25.html
>> Note that I don't require the movie function ( yet :-) ). Each gray
>> structure represents a region where the scalar quantity is bigger than
>> a given level.
>>
>> I nevertheless downloaded FSC_Surface and the reuired dependencies
>> and it works great. I do surface plots so it will be very handy for me.
>>
>> Thanks,
>> Bernard.
>>
>> In article <MPG.17499b19c5f635a59898cc@news.frii.com>, David Fanning
>> <david@dfanning.com> wrote:
>>
>>> Bernard K. (bknaepen@'skip_this'mac.'and_this'com) writes:
>>>
>>>> I have a 3D scalar field, say r(x,y,z), and I would like to produce
a
> 3D
>>>> plot which represents the locations (x,y,z) where r is greater than
>>>> a given value.
>>>
>>> I had a similar requirement not too long ago. I hacked up
>>> my FSC_Surface program (this seems to be the starting point
>>> for a LOT of my subsequent programs!) to produce a sort of
>>> 3D pin plot, where the color and length of the pin represented
>>> the distance of a galaxy. It could be rotated in 3D space, etc.,
>>> and was quite useful for visualizing this data.
>>>
>>> You can find a picture of the result here:
>>>
>>> http://www.dfanning.com/misc/pin_3d.jpg
>>>
>>> The FSC_Surface program is here:
>>>
>>> http://www.dfanning.com/programs/fsc_surface.pro
>>>
>>> Cheers,
>>>
>>> David
>
>
>
>
> -----------== Posted via Newsgroups.Com - Uncensored Usenet News
==----------
> http://www.newsgroups.com The #1 Newsgroup Service in the World!
> -----= Over 100,000 Newsgroups - Ulimited Fast Downloads - 19 Servers
=-----
-----------== Posted via Newsgroups.Com - Uncensored Usenet News ==----------
http://www.newsgroups.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
|
|
|