Skip to content

HanzDr/2D-3D-Object-Transformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌀 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:
    Python Manager
  • How to run the file:
    python -m venv venv
    venv\Scripts\activate on Windows
    pip install -r requirements.txt

About

For my Linear Algebra Project Defense

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors