Skip to main content

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 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


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

Uploaded Source

Supported by

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