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

Home » Public Forums » archive » Re: obtaining modified data from object graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: obtaining modified data from object graphics [message #48526] Wed, 26 April 2006 11:10
CD is currently offline  CD
Messages: 5
Registered: January 2006
Junior Member
thnx for the help. i appreciate it...

now i understand how object graphics works. can the transformation
matrix which is generated by the IDLgrModel be used explicitly on the
data in IDLgrVolume in a technique similar to the one suggested by the
prog. on david's site? essentially i kind of need it for a series of
rotations about a weird axis.

cheers,
-cd
Re: obtaining modified data from object graphics [message #48533 is a reply to message #48526] Tue, 25 April 2006 20:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rick Towler writes:

> For volume data, maybe something like this will work:
>
> http://www.prl.ernet.in/~shashi/idl_info/Morisset/pro/turn_3 d.pro

Here is a recommended volume rotation algorithm:

http://www.dfanning.com/math_tips/rotvolume.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: obtaining modified data from object graphics [message #48534 is a reply to message #48533] Tue, 25 April 2006 16:41 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
You can't really do this using object graphics.

Data that is manipulated by the set and get properties exists in your
object's "object space". When that object is rendered, these data are
transformed into "world space" by one or more IDLgrModels and finally
into "view space" by IDLgrView. The problem is that this transformed
data is inaccessible from within IDL. So while you see what you want,
you can't "get" it.

You need to transform your data directly. For polygonal data, VERT_T3D
will do this. For volume data, maybe something like this will work:

http://www.prl.ernet.in/~shashi/idl_info/Morisset/pro/turn_3 d.pro

-Rick


CD wrote:
> hello all,
>
> i was recently introduced to the object graphics capability of IDL. i
> am very much impressed with its functionality. but i am facing a small
> problem. i will try to describe it as clearly as possible.
> i have a 3 dim data which is a representation of a cube such that if a
> point is inside the cube it is 1 otherwise the value at that point is
> zero. now i load this data into myvolume using idlgrvolume and display
> it using the object graphics. now i rotate the model about [1,1,1] axis
> by say 45 deg. the result is good and what i wanted. now i want this
> modified data to be stored back into a 3d variable such that now this
> array will have the 1's and 0's acc. to the rotated cube. how do i go
> about achieving this?
> becuase after this is i use getprperty on myvolume it returns the same
> data which i had entered not the rotated one.
>
> thanx
>
> cheers,
> -cd
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL archive utility?
Next Topic: GRIDDATA error

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

Current Time: Wed Oct 08 13:38:53 PDT 2025

Total time taken to generate the page: 0.00528 seconds