Skip to content

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.

License

Notifications You must be signed in to change notification settings

AbhishekMali21/FUN-WITH-POLYGONS-CG-PROJECT

Repository files navigation

FUN WITH POLYGONS - COMPUTER GRAPHICS PROJECT

author GitHub followers GitHub watchers GitHub forks GitHub stars

GitHub language count GitHub top language GitHub repo size

GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests LICENSE HitCount

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

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

SCREENSHOTS


  • OUTPUT WINDOW TO ENTER THE ORDER OF POLYGON:

WINDOW


  • SCREENSHOT OF POLYGON WHEN ORDER IS 3:

3


  • SCREENSHOT OF POLYGON WHEN ORDER IS 4:

4


  • SCREENSHOT OF POLYGON WHEN ORDER IS 5:

5


  • SCREENSHOT OF POLYGON WHEN ORDER IS 6:

6


  • TRIGGERRING POLYGON MOVEMENT USING KEYBOARD INTERRUPT:

6A


  • TRIGGERRING POLYGON MOVEMENT USING MOUSE INTERRUPT:

6B


ANIMATIONS


  • TRIGGERRING POLYGON MOVEMENT USING KEYBOARD INTERRUPT:

6keyboard


  • TRIGGERRING POLYGON MOVEMENT USING MOUSE INTERRUPT:

6mouse


CONTRIBUTING

Please read CONTRIBUTING 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 file for details

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages