IDLgrVolume, PickVoxel, HELP!!! [message #42618] |
Thu, 17 February 2005 08:25 |
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
|
|
|