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

Home » Public Forums » archive » Re: 3d device coordinates from a 3D polyline....
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: 3d device coordinates from a 3D polyline.... [message #81501] Mon, 01 October 2012 10:10 Go to next message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
George Millward writes:

> So there is nothing in the object graphics system like the 'CONVERT_COORD' routine ?

Not to my knowledge. :-(

Cheers,

David
Re: 3d device coordinates from a 3D polyline.... [message #81502 is a reply to message #81501] Mon, 01 October 2012 10:07 Go to previous messageGo to next message
George.millward is currently offline  George.millward
Messages: 26
Registered: October 2012
Junior Member
On Monday, October 1, 2012 6:32:00 AM UTC-6, David Fanning wrote:
> George.millward@yahoo.com writes:
>
>
>
>> I have am idlgrpolyline which I can rotate in a 3D view (with the trackball).
>
>> I want to know the 2D coordinates of this line in the device (ie,the 2D the projection in the window). Can't figure it out.
>
>
>
> I'm no expert in this area, but I think the 3D to 2D
>
> conversions of the transformation matrix (which you
>
> can recover from the trackball) are well known. You
>
> can read the answer at the bottom of this article,
>
> for example:
>
>
>
> http://math.stackexchange.com/questions/336/why-are-3d-
>
> transformation-matrices-4x4-instead-of-3x3
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")


Hmm,

So there is nothing in the object graphics system like the 'CONVERT_COORD' routine ?

George.
Re: 3d device coordinates from a 3D polyline.... [message #81504 is a reply to message #81502] Mon, 01 October 2012 05:31 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
George.millward@yahoo.com writes:

> I have am idlgrpolyline which I can rotate in a 3D view (with the trackball).
> I want to know the 2D coordinates of this line in the device (ie,the 2D the projection in the window). Can't figure it out.

I'm no expert in this area, but I think the 3D to 2D
conversions of the transformation matrix (which you
can recover from the trackball) are well known. You
can read the answer at the bottom of this article,
for example:

http://math.stackexchange.com/questions/336/why-are-3d-
transformation-matrices-4x4-instead-of-3x3

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: 3d device coordinates from a 3D polyline.... [message #81517 is a reply to message #81504] Fri, 28 September 2012 14:31 Go to previous messageGo to next message
George.millward is currently offline  George.millward
Messages: 26
Registered: October 2012
Junior Member
On Friday, September 28, 2012 3:30:56 PM UTC-6, (unknown) wrote:
> Hi there,
>
>
>
> This must be straightforward but I'm lost in the help system:
>
>
>
> I have am idlgrpolyline which I can rotate in a 3D view (with the trackball).
>
> I want to know the 2D coordinates of this line in the device (ie,the 2D the projection in the window). Can't figure it out.
>
>
>
> Any ideas ?
>
>
>
> Cheers
>
>
>
> George.

sorry, that should say : '2d device coordinates from a 3D polyline....'
Re: 3d device coordinates from a 3D polyline.... [message #81597 is a reply to message #81502] Tue, 02 October 2012 02:22 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le lundi 1 octobre 2012 19:07:22 UTC+2, (inconnu) a écrit :
> On Monday, October 1, 2012 6:32:00 AM UTC-6, David Fanning wrote:
>
>>> I have am idlgrpolyline which I can rotate in a 3D view (with the trackball).
>
>>
>
>>> I want to know the 2D coordinates of this line in the device (ie,the 2D the projection in the window). Can't figure it out.
>
>>
>
>>
>
>>
>
>> I'm no expert in this area, but I think the 3D to 2D
>
>>
>
>> conversions of the transformation matrix (which you
>
>>
>
>> can recover from the trackball) are well known. You
>
>>
>
>> can read the answer at the bottom of this article,
>
>>
>
>> for example:
>
>>
>
>>
>
>>
>
>> http://math.stackexchange.com/questions/336/why-are-3d-
>
>>
>
>> transformation-matrices-4x4-instead-of-3x3
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> David Fanning, Ph.D.
>
>>
>
>> Fanning Software Consulting, Inc.
>
>>
>
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
>>
>
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
>
>
>
>
> Hmm,
>
>
>
> So there is nothing in the object graphics system like the 'CONVERT_COORD' routine ?
>
>
>
> George.

In Object Graphics and New Graphics you can use "[XYZ]COORD_CONV" and
"ConvertCoord" methods, respectively. The last one being quite similar to the "Convert_Coord" function in Direct Graphics.
Alain.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: determining the volume of a fitted ellipsoid that sticks out the sides of a polyhedron
Next Topic: Map_Set verses Map_Proj_Init in Mercator Projections

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

Current Time: Wed Oct 08 20:01:12 PDT 2025

Total time taken to generate the page: 0.00579 seconds