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

Home » Public Forums » archive » IDLgrVolume, PickVoxel, HELP!!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDLgrVolume, PickVoxel, HELP!!! [message #42618] Thu, 17 February 2005 08:25
lyubo is currently offline  lyubo
Messages: 34
Registered: March 2002
Member
Hi All,

I create a mip volume ( IDLgrVolume with Composite_Function=1) and use the
PickVoxel function
to pick a position in that volume with the following code:

(*pState).oVolume =
Obj_New('IDLgrVolume',*(*pState).vol[1].image,Composite_Func tion=1,$
ZBuffer=1,Render_Step=[1,1,1],Hints=3,UValue='3dOvr',TWO_SID ED=1)

Then I add the volume to my model :

(*pState).oModel[0,2]->Add, (*pState).oVolume

and I use the PickVoxel method to read in a position in the volume.
Everything works fine so far.

However, if I scale the model:

(*pState).oModel[0,2]->Scale,
(*pState).voxSize[0,1],(*pState).voxSize[1,1],(*pState).voxS ize[2,1]

I can not pick the correct volume position (with PickVoxel) any more.

I am guessing that when I scale the model, the ZBuffer does not get
scaled. Is this the reason why I
am not able to get the correct position? If not what is the problem and
how can I get around this?
I have to be able to scale the volume and still read in the correct volume
position.


And something else that I have encountered. The PickVoxel method will not
take a Path keyword. Why?
Result = Obj->[IDLgrVolume::]PickVoxel ( Win, View, Point [,
PATH=objref(s)] )

I would appreciate any help.

Thank you,

Lyubo
[Message index]
 
Read Message
Previous Topic: dll not loading
Next Topic: Re: trajectory plot behind sphere

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

Current Time: Fri Oct 10 15:58:49 PDT 2025

Total time taken to generate the page: 1.67757 seconds