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

https://github.com/hanzdr/2d-3d-object-transformation

For my Linear Algebra Project Defense
https://github.com/hanzdr/2d-3d-object-transformation

matplotlib-python matrix numpy

Last synced: about 2 months ago
JSON representation

For my Linear Algebra Project Defense

Awesome Lists containing this project

README

          

# 🌀 Transform Playground

An educational Python project for visualizing **2D and 3D geometric transformations** such as rotation, scaling, and translation — built with **NumPy** and **Matplotlib**.

---

## 🎯 Features

### ✅ 2D Mode

- to run: python 2d-playground.py
- Rotate and scale 2D shapes (like squares or polygons)
- Interactive version lets you **drag vertices** and **use sliders** for live transformations

### ✅ 3D Mode

- to run: python 3d-playground.py
- Rotate, scale, and translate a cube in 3D space
- Adjust **rotation angles (X, Y, Z)** and **scale** with interactive sliders
- **Orbit and zoom** the camera using your mouse
- Optional: drag vertices in screen space to reshape the cube

---

## 🧰 Requirements

- Python 3.10 or newer
- Dependencies:
```bash
Python Manager
```
- How to run the file:
``` bash
python -m venv venv
venv\Scripts\activate on Windows
pip install -r requirements.txt
```