3d translation in Python.

Luis Torres dsteel1 at tampabay.rr.com
Sat Aug 31 11:52:15 CEST 2002


"Terry Reedy" <tjreedy at udel.edu> wrote in message news:<z0Ob9.184018$Aw4.7758400 at bin2.nnrp.aus1.giganews.com>...
> "> Is there a way to translate a point in the global to the member
> > coordinate?
> 
> If x,y,z are global coordinates of Point to be translated and a,b,c
> are global coordinates of member (or reference point thereof), then
> x-a,y-b,z-c are translated member coodinates of Point (ie, relative to
> reference point of member).  If you want to rotate and/or stretch the
> coordinate system also, then you need to do matrix multiplication and
> should look up basic info about 3D computer graphics that explains
> such.
> 
> (Or look at transform? module of something like pygame www.pygame.org
> which has such already written.)
> 
> Terry J. Reedy


Thanks Terry (sorry about the double posting).

Found some great code to do exactly what I needed, I'll keep you posted.

Luis Torres



More information about the Python-list mailing list