[comp.graphics] FC Line Clipper

jcs@crash.cts.com (John Schultz) (04/10/90)

  I've gotten over 30 requests for the FC clipper, so a post is in
order.  I've never posted 27k of source to usenet: must the file
be compressed somehow before posting?  If so, let me know how and
what to do and where (alt.sources?).

  
  John

jcs@crash.cts.com (John Schultz) (04/11/90)

  I have sent the source for the FC clipper to comp.sources.misc.
It's moderated, so the file will go to the moderator first.  Fifty
or so have requested a copy, so try to get it from comp.sources.misc.
If you can't get it there (should be there RSN), I mail you a copy directly.
The file is 30825 bytes.  I've also written the Sutherland-Hodgman polygon
clipper in Modula-2 and also Assembly.  Why not C? Well, when I code in C,
I write all of the time critical code in assembly and link it all together.
The Modula-2 compiler didn't have a link compatible format, so no assembly.
Converting from Modula-2 to C is easy, as Modula-2 looks just like Pascal
(it's Pascal's successor).
  The SH polygon clipper is much shorter than FC.  It's a fairly general
clipper, and the fastest method I know of.  Again, those interested, let
me know.  Also, if faster methods exist, please fill me in.



  John