add image

This commit is contained in:
nicolalandro 2021-11-13 16:15:35 +01:00
parent d90076d1b4
commit 7b180f413b
3 changed files with 12 additions and 3 deletions

View File

@ -5,9 +5,12 @@
This lib is able to transform an .obj file to HTML that use three.js.
In this way it is possible to have an interactive 3D view that can be used on the browser or into a jupyter notebook.
![](imgs/colab_sample.png)
* run into jupyter notebook
```
! 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

BIN
imgs/colab_sample.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -13,9 +13,15 @@ You can use that lib to create html file from a .obj path:
# firefox index.html
.. image:: https://gitlab.com/nicolalandro/obj2html/imgs/colab_sample.png
:width: 400
:alt: Colab example
Use in a Jupyter notebook to display a .obj 3D file:
! pip install
! pip install obj2html
! wget https://gitlab.com/nicolalandro/obj2html/-/raw/main/test/assets/model.obj
from obj2html import obj2html
@ -32,7 +38,7 @@ Use in a Jupyter notebook to display a .obj 3D file:
setup(
name = 'obj2html',
packages = ['obj2html'],
version = '0.3',
version = '0.4',
license='MIT',
description = 'Create an html with three.js that contains the given .obj file.',
long_description = long_des,