This repository is helping me to keep a regular check on my computer graphics assignments. It contains solutions in C++ for various computer graphics based algorithms including DDA,Bresenham algorithm, basic geometry and graphs drawing algorithms, scanline fill, boundary fill and flood fill algorithms.
Assignment questions can be found in the file named Assignment.pdf
Solutions for Assignment 1:-
- FIGURES.CPP
- LINE.CPP AND LINE3.CPP
- LINE2.CPP
- GRAPH.CPP AND GRAPH2.CPP
- CIRCLE2.CPP
- WHEEL.CPP
Solutions for Assignment 2:-
- POLYGONP.CPP
- POLYGONR.CPP
- POLYGONS.CPP
- BOUNDARY.CPP
- FLOODFIL.CPP
- CLIPPING.CPP
- LINECLIP.CPP
- TRANSFOR.CPP
References :-
1.Computer Graphics by Donald D.Hearn and M. Pauline Baker
2.Assignment 2 Q.7 from http://www.geeksforgeeks.org/line-clipping-set-1-cohen-sutherland-algorithm/