This project is an experiment to test the capabilities of advanced AI code generation and debugging tools (specifically Cursor) when dealing with geometric problems. The focus is on drawing inscribed shapes - a task that typically challenges AI systems.
Advanced AI models often struggle with precise geometric calculations and visualizations, particularly when it comes to:
- Correctly inscribing shapes within other shapes
- Maintaining proper proportions and alignments
- Handling different geometric cases and orientations
This script serves as a test case for these challenges, implementing six different cases of inscribed shapes:
- Square > Triangle > Circle
- Circle > Triangle > Square
- Triangle > Circle > Square
- Square > Triangle > Circle
- Circle > Square > Triangle
- Triangle > Square > Circle
- Python 3.x
- matplotlib
- numpy
Create virtual environment
python -m venv venv
Activate virtual environment
On Windows:
.\venv\Scripts\activate
On Unix or MacOS:
source venv/bin/activate
Install dependencies
pip install -r requirements.txt
Run the script to see the visualization of all six inscribed shape cases:
python inscribed_shapes.py
This project is licensed under the MIT License - see the LICENSE file for details.
