Message from discussion
3d device coordinates from a 3D polyline....
Received: by 10.66.90.36 with SMTP id bt4mr4462919pab.5.1349094720160;
Mon, 01 Oct 2012 05:32:00 -0700 (PDT)
Path: t10ni23600252pbh.0!nntp.google.com!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 01 Oct 2012 07:31:59 -0500
From: David Fanning <n...@idlcoyote.com>
Newsgroups: comp.lang.idl-pvwave
Subject: Re: 3d device coordinates from a 3D polyline....
Date: Mon, 1 Oct 2012 06:31:59 -0600
Message-ID: <MPG.2ad33b2b5c91b284989b6b@news.giganews.com>
References: <f901b970-69ee-4ba1-8217-07a7b37fd140@googlegroups.com>
Organization: Fanning Software Consulting, Inc.
MIME-Version: 1.0
User-Agent: MicroPlanet-Gravity/3.0.4
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-nHA+LtQfOJpRKDTD3OTy0RcoGYKN1veKiHBvLb9Y7gjdlemRDVPh4s1qk3zbHJ+8gGINQFSqFMhJCsP!2CNit/eAkCKLM7GGXwsm+gl3s07vlpLhrBWqBCPQUUVBBEO265Z7WdTlwLfmKBAl+mfZ0lZeTg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1906
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
George.millw...@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.")