Abstract
The previous chapter introduced the concept of a virtual 3D world and showed how to generate wire-frame images of this world — the present chapter will build on this foundation to create images which contain polygons filled with solid colour. The line-drawing code of the previous chapter is used here to calculate the outline of a polygon — this outline can be filled with coloured pixels in an efficient manner. The essential topics include:
-
GDI polygon-fill functions
-
calculating a polygon outline
-
optimizing the colour-fill process
-
hidden polygon removal
-
storing a virtual world in a file
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
Rights and permissions
Copyright information
© 1998 Springer-Verlag London Limited
About this chapter
Cite this chapter
Walmsley, M. (1998). Polygon-Fill Techniques. In: Graphics Programming in C++. Springer, London. https://doi.org/10.1007/978-1-4471-0905-1_9
Download citation
DOI: https://doi.org/10.1007/978-1-4471-0905-1_9
Publisher Name: Springer, London
Print ISBN: 978-1-4471-1231-0
Online ISBN: 978-1-4471-0905-1
eBook Packages: Springer Book Archive