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

Home » Public Forums » archive » 3d device coordinates from a 3D polyline....
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: 3d device coordinates from a 3D polyline.... [message #81553 is a reply to message #81518] Thu, 04 October 2012 09:23 Go to previous messageGo to previous message
George.millward is currently offline  George.millward
Messages: 26
Registered: October 2012
Junior Member
On Wednesday, October 3, 2012 2:29:02 PM UTC-6, Karl wrote:
> On Tuesday, October 2, 2012 3:32:02 PM UTC-6, Mike Galloy wrote:
>
>> On 10/2/12 3:02 PM, Karl wrote:
>
>>
>
>>> It should also be possible to write a general-purpose function that
>
>>
>
>>> takes a "leaf" graphics object and walks up the scene graph,
>
>>
>
>>> computing the single 4x4 combined matrix and returns it. You would
>
>>
>
>>> then use that single matrix to transform your points.
>
>>
>
>>>
>
>>
>
>>> In a way, you are duplicating the entire transform that IDL applies
>
>>
>
>>> to the points via the underlying graphics system (OpenGL). I don't
>
>>
>
>>> remember if there is a way to get this transform directly from IDL -
>
>>
>
>>> don't think so. And someone out there may have already written an
>
>>
>
>>> IDL function to do this. But, I don't know of any.
>
>>
>
>>
>
>>
>
>> Isn't this the ::getCTM() method or am I misunderstanding the situation?
>
>>
>
>>
>
>>
>
>> Mike
>
>>
>
>> --
>
>>
>
>> Michael Galloy
>
>>
>
>> www.michaelgalloy.com
>
>>
>
>> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
>>
>
>> Research Mathematician
>
>>
>
>> Tech-X Corporation
>
>
>
> yep, that's it.

Actually, this IS a 3D perspective view I'm working with. I have a polyline in a 3D perspective scene. One end of the polyline is at the center of my 3D coordinate system (ie, [0,0,0]) and the other end is at (say) [+10,0,0]. As I rotate it around with a trackball the 2D projection in the window can assume any
'size' (from a single pixel dot to a line of length 10) and any orientation (0 to 360 if you like).

I'm amazed there isn't an inbuilt function to tell me what these 2D window coordinates are - but there you go, nothing like spending a couple of weeks fiddling with IDL - it's fun right ?

I'll take a look a Michael's object graphics chapter. For me that is the ideal sample chapter....

Cheers

George.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Smart way to extract the same attribute from a list of objects?
Next Topic: Re: IDL 8.2.1 released

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

Current Time: Sat Oct 11 13:46:00 PDT 2025

Total time taken to generate the page: 1.60037 seconds