Lecture06 - Primitive Output Attributes (Part 2)

# Lecture06 - Primitive Output Attributes (Part 2) - 1...

This preview shows pages 1–9. Sign up to view the full content.

1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 MUHAMAD NAJIB BIN ZAMRI MUHAMAD NAJIB BIN ZAMRI Primitive Output Attributes Primitive Output Attributes [Part 2] [Part 2]
3 Type of Polygon Convex Concave

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4 Convex Polygon All diagonal (corner) angles must less than 180 o . 1 θ 2 3 4 5 o 90 o 90 o 90 o 90
5 Concave Polygon At least one of the diagonal angle is greater than 180 o . o 180 θ

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
6 Area-Filling Algorithms: Introduction Assign or fill color to the created polygon (inside region). Basic idea: Wireframe Mode Filling Mode Assign red color
7 Area-Filling Algorithms Scan-Line Algorithm To fill simple convex and concave polygons. Seed Fill Algorithm To fill arbitrary complex, irregular boundaries.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Scan-Line Algorithm Assign color for each pixel, starting from left to right. Approach
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/05/2010 for the course COMPUTER S 876 taught by Professor Ch during the Spring '10 term at Amirkabir University of Technology.

### Page1 / 38

Lecture06 - Primitive Output Attributes (Part 2) - 1...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online