Introduction to the important algorithms og Computer Graphics
Though there are a lot of the algorithms used for various purposes in graphics, here we’ll be dealing with very few of them that are easy to understand, as a beginer.
These algorithms are are related to the folowing concepts:
- Line Drawing
- Line Clipping
- Circle Drawing
- Curve Tracing
- 2D & 3D Transformation
- Scaling
- Translating
- Shearing
- Reflecting
- Rotating
- Projection etc..
Most of these algorithms are from the prescribed practical list of syllabus of B.Sc. (H) Computer Science. Hence, those are placed separatly into practicals directory.
Following are some C++
programs where the above listed programs are implemented:
Bresenham’s Line Lrawing Algorithm:
Mid-Point Circle Drawing Algorithm:
Cohen and Sutherland Line Clipping Algorithm:
Sutherland Hodgeman Polygon Clipping Algorithm:
Scan Line Fill Algorithm for Polygon:
Diring the execution of algo.
After complete fill
2-D Transformations:
Input co-ordinates
Reflection
Rotation
3-D Transformations:
3-D Figure
Scaling
Perspective Projection
Hermite / Bezier Curve:
Apart from these, Digital Differential Analyzer(DDA) is also implemented that is one of the earlier algorithms, used for line drawing.
The output of DDA is: