A simple C++ project built to explore the fundamentals of 3D graphics. It takes an array of 3D vertex coordinates (x, y, z) and projects them onto a 2D terminal viewport using perspective projection. The lines array defines the vertex pairs that form edges, which are drawn using Bresenham’s line rasterization algorithm. The result is a wireframe 3D object rendered directly in the terminal. Object can be rotated in any way around the 3 axes.
gcc -o main main.cpp
./main