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
Release history Release notifications | RSS feed
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.11.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_3d-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5cff812619a512f4648e7ff8a1f4bd913cb8f7099ac64870c6a6fcefd5e24b |
|
MD5 | 366e06c33b9f8d27d887e3b7422613ae |
|
BLAKE2b-256 | 3d902120275f2f43c85efcba88071737c53dd92173884aafe661b216a5336b06 |