NEED a Graphics Routine using matrix transformations to make 3D objects

I need a graphics routine

It would be great, if you could hand me a small program to create 3D
objects, defined by line segments.

The program will be much better if it use matrix transformation
routines to make scaling, shearing, and translating.

Any reply could be sent to my e-mail, at digipl...@mail.telepac.pt

Thanks in advance.