diff --git a/README.md b/README.md index eb00893..36fb70e 100644 --- a/README.md +++ b/README.md @@ -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 +! 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 diff --git a/imgs/colab_sample.png b/imgs/colab_sample.png new file mode 100644 index 0000000..ffcefb4 Binary files /dev/null and b/imgs/colab_sample.png differ diff --git a/setup.py b/setup.py index ff76203..33636a1 100644 --- a/setup.py +++ b/setup.py @@ -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,