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

Home » Public Forums » archive » Re: VTK + IDL
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: VTK + IDL [message #40656 is a reply to message #40652] Wed, 25 August 2004 09:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hee Chun writes:

> VTK is the Visualization Tool Kit from Http://www.kitware.com
> Maybe I am a beginner for IDL's object graphics. I tried the following
> code but the image is not good enough for my application.
>
> file = Filepath('head.dat',Subdirectory=['examples',$
> 'data'])
> volumeData = READ_BINARY(file, DATA_DIMS = [80, 100, 57])
> oVol = Obj_new('IDLgrVolume',volumeData,/Zbuff,Hints=2,/No_copy,/Ze ro_opacity_skip)
> -- normalization --
> oModel = Obj_new('IDLgrModel')
> oView = obj_new('IDLgrView', viewplane_rect=[-1.,-1.,2.5,2.5], $
> color=[128,128,128],ZClip=[2.0,-2.0], Eye=60.0,Projection=2 )
>
> oModel ->Add, oVol;
> oView -> Add, oModel;
> oDrawWin -> Draw,oView;
>
> So, I come up with the idea calling VTK from IDL. What do I need to do
> more to display the image better?

If looks are what you are after, I would try setting
the INTERPOLATE keyword on your volume object.

> If you know who is using IDL's object a lot, please let me know.

Why, *everyone* is using objects a lot. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: save an IDLanROI to file? (newbie question)
Next Topic: TVimage and PlotS

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

Current Time: Sat Oct 11 16:27:31 PDT 2025

Total time taken to generate the page: 0.16037 seconds