This project involves creating a desktop application using PyQt5 that allows users to view and analyze 3D models of rectangular prisms. The application retrieves prism dimensions from a SQLite database, calculates surface area and volume, and displays a 3D CAD model using PythonOCC.
-
Install the required Python packages:
pip install -r requirements.txt
-
Initialize the SQLite database with sample data:
python initialize_db.py
-
Run the application:
python main.py
- Select a prism designation from the dropdown menu.
- View the calculated surface area and volume.
- Click the "Display 3D Model" button to visualize the prism.
To create an executable installer for this project, follow these steps:
-
Install PyInstaller:
pip install pyinstaller
-
Run PyInstaller to generate the executable:
pyinstaller --onefile main.py
-
The executable will be generated in the
dist
folder. You can distribute this executable to users.
For more details on PyQt5, refer to the PyQt5 documentation.
For more details on PythonOCC, refer to the PythonOCC documentation.