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
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.3.tar.gz
(2.4 kB
view hashes)