This is a Streamlit-based web application that allows users to upload and visualize 3D models in GLTF and GLB formats. The application uses trimesh
to load and parse the 3D models and plotly
to render the 3D visualizations.
- Upload GLTF/GLB files
- Visualize 3D models
- Display model metadata (number of vertices and faces)
-
Clone the repository:
git clone https://github.com/yourusername/3d-viewer.git cd 3d-viewer
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and navigate to
http://localhost:8501
.
- Push your project to a GitHub repository.
- Go to Streamlit Cloud and sign in.
- Create a new app and link it to your GitHub repository.
- Select the appropriate branch and
app.py
file. - Deploy the app.
This project is licensed under the MIT License. See the LICENSE file for details.