[comp.graphics] filling polygons

millerjv@rigel.crd.ge.com (Jim V Miller) (07/31/90)

I am looking for a reference on filling a polygon with a "cross-hatch"
pattern.  Specifically I am looking to emulate HP-GL's fill patterns.  These
patterns are composed of lines oreinted in various directions.  I need a 
method to "fill" arbitrary polygons with this fill pattern (the patterns
change during execution based on user-defined scale, etc).  To make the
problem even more difficult, I would like to break the polygon into several
horizontal slabs and fill each one separately.  I suppose I could perform the
fill operation on each slab and clip appropriately, but I would prefer not.
Incidently, the motivation for splitting the polygon into horizontal slabs
is that we are rasterizing a vector scene which will be dumped to a printer.
Our computers do not have enough memory to hold the entire raster image in 
memory.


Also, what is the status of HP-GL in terms of public domain, copyrights, 
patents, licenses, etc.  This is for a HP-GL interpreter and I would like
to know what sort of arrangements (in any) would have to be made to market
such a beast.  I have been basing the interpreter on the "Colorpro Programmer's
Manual".

Thanks.
--
Jimmy Miller

General Electric Corporate Research and Developement:	millerjv@crd.ge.com
Rensselaer Design Research Center (RPI):		jvmiller@rdrc.rpi.edu

"All I need is room to play."