Create an html with three.js that contains the given .obj file.
Project description
You can use that lib to create html file from a .obj path:
from obj2html import obj2html
html_string = obj2html(obj_path)
obj2html(obj_path, ‘index.html’)
# firefox index.html
Use in a Jupyter notebook to display a .obj 3D file:
! pip install obj2html
! wget https://gitlab.com/nicolalandro/obj2html/-/raw/main/test/assets/model.obj
from obj2html import obj2html
from IPython.display import display, HTML
obj_path = ‘model.obj’
obj2html(obj_path, ‘index.html’)
display(HTML(‘index.html’))
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
obj2html-0.4.tar.gz
(2.5 kB
view hashes)