home *** CD-ROM | disk | FTP | other *** search
- Path: xanth!cs.odu.edu!Amiga-Request
- From: Amiga-Request@cs.odu.edu (Amiga Sources/Binaries Moderator)
- Newsgroups: comp.sources.amiga
- Subject: v90i151: route 1.0 - printed circuit board router, Part01/06
- Message-ID: <12281@xanth.cs.odu.edu>
- Date: 23 Apr 90 00:08:39 GMT
- Sender: tadguy@cs.odu.edu
- Reply-To: finkel%TAURUS.BITNET@CUNYVM.CUNY.EDU
- Lines: 2343
- Approved: tadguy@cs.odu.edu (Tad Guy)
- X-Mail-Submissions-To: Amiga@cs.odu.edu
- X-Post-Discussions-To: comp.sys.amiga
-
- Submitted-by: finkel%TAURUS.BITNET@CUNYVM.CUNY.EDU
- Posting-number: Volume 90, Issue 151
- Archive-name: applications/route-1.0/part01
-
- Enclosed is a C based PCB autorouter I found on a BBS ( Ciarcia's
- circuit cellar BBS ). It seems the file was picked up from Usenet. I
- tried mailing the author but got no reply.
-
- Anyhow, the program was for an AT with an EGA monitor. I ported the
- autorouter and the previewer, but not the PCB printer, since it was
- intended for an HP LaserJet II printer, which I don't have. ...
-
- The original previewer stored the different PCB patterns ( which includes
- holes, horizontal,vertical and diagonal lines, line corners, etc. ) in
- an integer matrix , with 1 for 'on' and 0 for 'off'. There are about
- 30 different patterns in 4 different sizes. The program used a routine
- similar to WritePixel to draw the PCB on the screen. not only was this slow
- ( about 10 seconds on a 12MHz AT for a full size board, with the program
- compiled for 286 instruction set, and 15 seconds for a direct port of
- the same program on the Amiga using WritePixel() ), but these arrays made
- the program much bigger than it should have been. I converted the previewer
- to use packed bitmap arrays ( like Image structures ), and use the
- BltPattern() routine to draw each PCB pattern, and now the screen update
- time has gone down to 2 seconds for a full board!
-
- I kept all the old files in a seperate directory called 'old'. The
- original bitmap files are needed for the printer program which I still
- didn't port.
-
- [ the ``old'' directory is included in the sources posting only ...tad]
-
- Udi
-