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

Home » Public Forums » archive » Re: Object Surface Shaded by Elevation (LONG)
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: Object Surface Shaded by Elevation (LONG) [message #13312 is a reply to message #13305] Mon, 02 November 1998 00:00 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
David Fanning, davidf@dfanning.com writes:

WARNING: useful but undocumented feature follows

**You can add a palette to a surface object.**

Try replacing this line in David's program:


> thisWindow->SetProperty, Palette=thisPalette

With all of the following:


thisSurface->SetProperty, Palette=thisPalette

thisSurface2 = OBJ_NEW('IDLgrSurface', data/2, x, y, Style=style, $
Shading=0, Vert_Colors=Reform(BytScl(data), numVerts))
thisPalette2=Obj_New('IDLgrPalette')
thisPalette2->LoadCT, 0
thisSurface2 -> SetProperty, palette=thispalette2
thisSurface2->GetProperty,XRange=xrange,YRange=yrange,ZRange=zrange
xs = Normalize(xrange, Position=[-0.5,0.5])
ys = Normalize(yrange, Position=[-0.5,0.5])
zs = Normalize(zrange, Position=[-0.2,0.2])
thisSurface2->SetProperty,XCoord_Conv=xs, YCoord_Conv=ys, ZCoord_Conv=zs
thisModel->Add, thisSurface2


No doubt RSI will break this in 5.2 since I use it so much.


Struan
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: HDF Data sets containg strings?
Next Topic: IDL 5.2 Reviews

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

Current Time: Sat Oct 11 12:56:00 PDT 2025

Total time taken to generate the page: 0.63998 seconds