Skip to main content

Polygon-Fill Techniques

  • Chapter
Graphics Programming in C++
  • 499 Accesses

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

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics