Skip to main content

3d model viewer

Project description

streamlit_3d

3d model viewer

Installation instructions

pip install streamlit-3d

Usage instructions

    # pip install streamlit-3d
    import streamlit as st 
    import streamlit_3d as sd

    md=st.selectbox("3D Model:",["https://alteirac.com/models/helmet/scene.gltf",
                                 "https://alteirac.com/models/engine/scene.gltf"
                                 ])
    # if you want to load existing Annotations:                                
    value = sd.streamlit_3d(height=600,model=md,points=[{"description":"LEFT_LIGHT",
                                            "data-position":{"x":0.4595949207254826,"y":0.40998085773554555,"z":0.33846317660071373},
                                            "data-normal":{"x":-0.18705895743345607,"y":-0.3420641705224677,"z":0.9208697246020658}}
                                            ])
    # if you simply want to show the model:
    # value = sd.streamlit_3d(model=md,height=700)                                        
    st.write(value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-3d-0.1.12.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_3d-0.1.12-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-3d-0.1.12.tar.gz.

File metadata

  • Download URL: streamlit-3d-0.1.12.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for streamlit-3d-0.1.12.tar.gz
Algorithm Hash digest
SHA256 3db72478457e3c2fcedff08c3ee8d92aead5265d534e263d673e791a32f6f517
MD5 76efc234d6b8e676f41e1a2fc8efc3d8
BLAKE2b-256 efd4300f4722436be9a2e75b1bfd3eeb1d51f86ee652b9a28c5c1f87d499c19e

See more details on using hashes here.

File details

Details for the file streamlit_3d-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: streamlit_3d-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for streamlit_3d-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 382f8ea0a414f77e23c52598a50322f3f45bb1deb5700970b7097b15512f1e10
MD5 5b2e1a656ca3971af7c9ce0515e634ee
BLAKE2b-256 fdc2045446bb9ed777057033f4dabefcd8c850e46839ddbf33635f20ad0e73c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page