Skip to content

3D visualization of the Sierpinski Pyramid using the OpenGL library.

Notifications You must be signed in to change notification settings

ZuzannaSlobodzian/sierpinski-pyramid

Repository files navigation

Sierpinski Pyramid

3D visualization of Sierpinski Pyramid using the OpenGL library.

The program initially prompts the user to enter the number of triangle subdivisions. Then, a pyramid representing the 3D visualization of the Sierpinski triangle with the specified number of subdivisions is generated.

Using the left mouse button, the user can freely rotate the pyramid. Pressing the right mouse button brings up a menu from which the user can choose one of three visualization modes for the pyramid: polygons, lines, or transparent. Alternatively, the user can select the "exit" option to terminate the program.

  • changing modes

    gif_3

  • polygon mode for 6 subdivisions

    gif_duzy

  • transparent mode for 3 subdivisions

    gif_transparent

  • lines mode for 5 subdivisions

    gif_linie

About

3D visualization of the Sierpinski Pyramid using the OpenGL library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published