On Nov 24, 2007, at 2:11 AM, [EMAIL PROTECTED] wrote:
I decided to start writing a library
to convert 3D coordinates to 2D coordinates based on the data at
http://www.shade.ca/getarticle.asp?i=11. You can find it at /n/
sources/contrib/pietro/3d.bundle. It contains: 3d.h (the header),
3d.c (the library itself), and 3dtest.c (a test program).
did't check the bugs nor the article, so i hope i'm not entirely
off here. there is already libgeometry, described in matrix(2),
will do the job for you. it does what 3d engines do, except
clipping and rendering.
This library has Point3, which is Point3D with an object w that is
the denominator to (x,y,z) in the final point. I didn't need this, so
I made it 1 in my local copy and changed all Point3Ds to Point3s. The
3D library now uses libgeometry and will have a box drawing facility
the next update.