Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abhishekmali21/fun-with-polygons-cg-project

A Computer Graphics project implementing the generation of various polygons based on the order entered by the user. It also supports different transformations and event-driven functions of OpenGL on primary objects.
https://github.com/abhishekmali21/fun-with-polygons-cg-project

15csl68 17csl68 18csl68 6thsemcse 6thsemvtu cgminiproject cgproject glut-library opengl openglproject vtu vtuproject

Last synced: 3 days ago
JSON representation

A Computer Graphics project implementing the generation of various polygons based on the order entered by the user. It also supports different transformations and event-driven functions of OpenGL on primary objects.

Awesome Lists containing this project

README

        

# FUN WITH POLYGONS - COMPUTER GRAPHICS PROJECT

[![author](https://img.shields.io/badge/author-Abhishek-ff69b4.svg?style=flat-square)](https://www.linkedin.com/in/abhishekmali/)
[![GitHub followers](https://img.shields.io/github/followers/AbhishekMali21?style=social)](https://github.com/AbhishekMali21?tab=followers)
[![GitHub watchers](https://img.shields.io/github/watchers/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=social)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/watchers)
[![GitHub forks](https://img.shields.io/github/forks/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=social)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/network/members)
[![GitHub stars](https://img.shields.io/github/stars/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=social)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/stargazers)

![GitHub language count](https://img.shields.io/github/languages/count/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=flat-square)
![GitHub top language](https://img.shields.io/github/languages/top/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?logoColor=9cf&style=flat-square)
![GitHub repo size](https://img.shields.io/github/repo-size/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?logoColor=important&style=flat-square)

[![GitHub issues](https://img.shields.io/github/issues/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=flat-square)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/issues?q=is%3Aopen+is%3Aissue)
[![GitHub closed issues](https://img.shields.io/github/issues-closed/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?style=flat-square)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/issues?q=is%3Aissue+is%3Aclosed)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?logoColor=yellow&style=flat-square)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/pulls?q=is%3Aopen+is%3Apr)
[![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT?logoColor=yellow&style=flat-square)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/pulls?q=is%3Apr+is%3Aclosed)
[![LICENSE](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/LICENSE)
[![HitCount](http://hits.dwyl.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT.svg)](http://hits.dwyl.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT)

## ABOUT THE PROJECT

The project is designed for supporting different transformation functions and event driven function of OpenGL on primary objects. The project implements the generation of various polygons on the basis of the polygons order entered by the User.

## AUTHORS

* [@abhishekmali21](https://github.com/AbhishekMali21) - Abhishek Mali
* [@keshavpola](https://github.com/keshavpola) - Keshav Pola

## DESCRIPTION

- A Polygon is a 2D shape which is made up of straight line segments. A regular polygon has all sides and angles equal (e.g. a square is a regular quadrilateral).

- In elementary geometry, a polygon is a plane figure that is described by a finite number of straight line segments connected to form a closed polygonal chain or polygonal circuit. The solid plane region, the bounding circuit, or the two together, may be called a polygon.

- A regular polygon is a polygon with all angles and all sides congruent, or equal. Here are some regular polygons.

- We can use a formula to find the sum of the interior angles of any polygon. In this formula, the letter n stands for the number of sides, or angles, that the polygon has.
```Sum of angles = (n – 2)180°```
Polygons are named after the number of sides they have.

## FEATURES

- The important feature of this project is we can generate various polygons on the given order of a polygon.
- The generated polygons view are aesthetically pleasing and eye-catching.
- We can easily move the polygon in upper, lower, left, and right directions.
- We can generate the polygons with various order which are specified by the user (ie) the order of the polygon is taken as input from the user.
- There is a proper movement of the polygons.
- Keyboard interrupts are used for movement of the polygon in clockwise and anti-clockwise manner.
- Mouse interrupts are also used for movement of the polygon in different perspectives.
- There is a proper delay in the movement of the polygon.
- The generation of the polygons take very less time.

## PRE-REQUISITES
- Install CodeBlocks software from [codeblocks-17.12mingw-setup.exe](http://www.codeblocks.org/downloads/26).
- Set up [freeglut library](https://www.transmissionzero.co.uk/software/freeglut-devel/) to codeblocks folder as shown in this [video](https://www.youtube.com/watch?v=NPcnymtP2SE).
- Or have linux environment to execute this [code](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/code.cpp).

## SCREENSHOTS
---
- OUTPUT WINDOW TO ENTER THE ORDER OF POLYGON:

![WINDOW](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/window.PNG)

---

- SCREENSHOT OF POLYGON WHEN ORDER IS 3:

![3](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/3.PNG)

---

- SCREENSHOT OF POLYGON WHEN ORDER IS 4:

![4](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/4.PNG)

---

- SCREENSHOT OF POLYGON WHEN ORDER IS 5:

![5](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/5.PNG)

---

- SCREENSHOT OF POLYGON WHEN ORDER IS 6:

![6](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/6.PNG)

---

- TRIGGERRING POLYGON MOVEMENT USING KEYBOARD INTERRUPT:

![6A](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/6A.PNG)

---

- TRIGGERRING POLYGON MOVEMENT USING MOUSE INTERRUPT:

![6B](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/6B.PNG)

---

## ANIMATIONS

---

- TRIGGERRING POLYGON MOVEMENT USING KEYBOARD INTERRUPT:

![6keyboard](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/6keyboard.gif)

---

- TRIGGERRING POLYGON MOVEMENT USING MOUSE INTERRUPT:

![6mouse](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/Screenshots/6mouse.gif)

---

### CONTRIBUTING

Please read [CONTRIBUTING](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

### LICENSE

This project is licensed under the MIT License - see the [LICENSE](https://github.com/AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT/blob/master/LICENSE) file for details