This project is a simple 3D shape viewer implemented in Java. It allows you to view and interact with 3D shapes like a Pyramid and a Cube.
- Rotate the shape horizontally and vertically using the mouse.
- Increase or decrease the size of the shape using the mouse wheel.
- Choose the shape to display from a dropdown menu.
- Ensure you have Java installed on your system. If not, you can download it from here.
- Clone this repository to your local machine.
- Navigate to the directory containing
DemoViewer.java
. - Compile the Java file using the command
javac DemoViewer.java
. - Run the program using the command
java DemoViewer
.
- Click and drag the mouse to rotate the shape.
- Scroll the mouse wheel to increase or decrease the size of the shape.
- Select the shape from the dropdown menu at the top of the window.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Most of the code for this project was adapted from this blog post. Many thanks to the author for making it available.