updated and restructed README to make more sense and easy to find content

This commit is contained in:
K 2023-11-30 00:32:44 +05:30
parent 1a7e6500d8
commit 4d4e544fac
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -1,17 +1,37 @@
# CG
This repository contains notes and codes for **Computer Graphics.**
This repository contains codes, write-ups, lab manuals, lab notes and question papers for **Computer Graphics.**
---
## Index
### Lab Notes CGL
1. [Equilateral Triangle Logic](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Equilateral%20Triangle%20Logic.pdf)
2. [Koch and Snowflake Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20Koch%20and%20Snowflake%20Curves.pdf)
3. [Transformation Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Transformation.pdf)
### Codes
#### Digital Differential Analyzer (DDA):
> Digital Differential Analyzer (DDA) is a line-drawing algorithm for digital displays, using incremental calculations to plot points between endpoints.
1. [Line](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-line.cpp)
2. [Triangle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-triangle.cpp)
3. [Circle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-circle.cpp)
#### Lab Codes:
1. [Assignment A-1 (Scan Fill)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-1%20%28Scan%20Fill%29.cpp)
2. Assignment A-2 (Cohen Sutherland Line Clipping)
- [Using DDA](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-2%20%28Cohen%20Sutherland%20Line%20Clipping%29%20%28using%20DDA%29.cpp)
- [Using built-in functions](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-2%20%28Cohen%20Sutherland%20Line%20Clipping%29%20%28using%20built-in%20function%29.cpp)
3. [Assignment A-3 (Pattern using DDA and Bresenham Line Drawing)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-3%20%28Pattern%20using%20DDA%20and%20Bresenham%20Line%20Drawing%29.cpp)
4. [Assignment B-4 (Transformations)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-4%20%28Transformations%29.cpp)
5. [Assignment B-5a (Snowflake)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5a%20%28Snowflake%29.cpp)
6. [Assignment B-5b (Hilbert Curve)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5b%20%28Hilbert%20Curve%29.cpp)
7. [Assignment B-5c (Koch Curve)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5c%20%28Koch%20Curve%29.cpp)
8. [Assignment C-6c (Sunrise and Sunset)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20C-6c%20%28Sunrise%20and%20Sunset%29.cpp)
9. [Assignment C-7b (Bouncing Ball)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20C-7b%20%28Bouncing%20Ball%29.cpp)
### Lab Manual
- [Full lab manual](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/CGL%20Lab%20Manual.pdf)
#### Printable format:
1. [Assignment 1](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%201.pdf)
2. [Assignment 2](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%202.pdf)
3. [Assignment 3](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%203.pdf)
@ -22,26 +42,6 @@ This repository contains notes and codes for **Computer Graphics.**
- [**Assignment Solutions 1-7 (ALL)**](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/assignments/CGL%20Assignments%20%281-7%29.pdf)
### Codes
#### Digital Differential Analyzer (DDA)
> Digital Differential Analyzer (DDA) is a line-drawing algorithm for digital displays, using incremental calculations to plot points between endpoints.
1. [Line](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-line.cpp)
2. [Triangle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-triangle.cpp)
3. [Circle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-circle.cpp)
#### Cohen-Sutherland
1. [Cohen-Sutherland (Using Inbuilt Function)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/CohenSutherland%28Using%20built-in%29.cpp)
2. [Cohen-Sutherland (Using DDA Line Drawing Algorithm)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/CohenSutherland%28UsingDDA%29.cpp)
#### Transformation
1. [Translation, scaling, rotation](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Transformation.cpp)
#### Curves
1. [Hilbert's Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/HilbertCurve.cpp)
2. [Koch Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Koch-Curve.cpp)
3. [Snowflake Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Snowflake.cpp)
### Notes
1. [Unit 1 - Graphics Primitives and Scan Conversion Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%201)
2. [Unit 2 - Polygon, Windowing and Clipping](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%202)
@ -49,6 +49,11 @@ This repository contains notes and codes for **Computer Graphics.**
4. [Unit 4 - Light, Colour, Shading and Hidden Surfaces](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%204/CG%20UNIT%204%20%28PPT%29.pdf)
5. [Unit 5 - Curves and Fractals](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%205)
#### Lab Notes (Computer Graphics **Lab**)
1. [Equilateral Triangle Logic](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Equilateral%20Triangle%20Logic.pdf)
2. [Koch and Snowflake Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Koch%20and%20Snowflake%20Curves.pdf)
3. [Transformation Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Transformation.pdf)
### Question Papers
1. [IN-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/IN-SEM)
2. [END-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/END-SEM)