Skip to content

saurabh-lohiya/2D-shape-extrusion

Repository files navigation

2D-shape-extrusion

Overview

This project focuses on creating, extruding and editing vertices of 2D shapes through mouse events and moving it in 3D space.

Setup

To install dependencies, run npm install.

How to Run

Execute vite to start the project.

Guide

You can select the mode by selecting on the dropdown on top-right side on window once you start the server.

1. Draw
Use Left Click to draw the vertices of polygon and right click to join them

2. Extrude
Once, you've created the polygon you can extrude it by selecting the extrusion height form gui and clicking on it.

3. Move
click and hold on Polygon or The Extruded Polygon You've created in the previous step to select it and press either x, y, or z to move it in plane perpendicular to the axis by moving the cursor.

4. Edit Vertex
You can edit the vertices of the Polygon or extruded by clicking on it and hold it and press either x, y, or z to move it in plane perpendicular to the axis by moving the cursor.

Contributing

Contributions are welcome! Please submit a Pull Request against the dev branch.

Naming Convention

If it's a feature feature/<feature-name>
If it's a bug bugfix/<bug-name>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published