Skip to content

Pygame CAD: A lightweight, beginner-friendly CAD application built with Python and Pygame for creating and editing shapes interactively. Perfect for experimenting with basic design and geometry tools.

License

Notifications You must be signed in to change notification settings

ObedienceAdara/CAD-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pygame CAD

A simple CAD (Computer-Aided Design) application built with Pygame, designed to create and edit basic shapes such as lines, rectangles, circles, and polygons. This project demonstrates the integration of interactive tools, grid snapping, and undo/redo functionality, making it a great foundation for more advanced CAD systems.


Features

  • 🛠️ Drawing Tools: Select, Line, Rectangle, Circle, and Polygon tools.
  • 📏 Grid Snap: Toggleable grid snapping for precise alignments.
  • 🔄 Undo/Redo: Command stack system for seamless editing.
  • 🎯 Shape Selection: Drag and drop shapes with intuitive controls.
  • 🌐 Zoom & Pan: Effortlessly navigate the canvas.

Getting Started

Prerequisites

  • Python 3.8+
  • Pygame library installed (pip install pygame)

Controls

  • Tools:
    • S: Select tool
    • L: Line tool
    • R: Rectangle tool
    • O: Circle tool
    • P: Polygon tool
  • Actions:
    • Ctrl+Z: Undo
    • Ctrl+Y: Redo
    • Delete: Remove selected shapes
    • Tab: Toggle grid snapping
    • Enter: Complete a polygon
    • Middle Mouse: Pan view
    • Shift + Click: Add to selection
    • Esc: Exit

Contributing

Contributions are welcome! Feel free to fork the project, submit pull requests, or open issues.


License

This project is licensed under the MIT License.

About

Pygame CAD: A lightweight, beginner-friendly CAD application built with Python and Pygame for creating and editing shapes interactively. Perfect for experimenting with basic design and geometry tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages