add image
This commit is contained in:
		@@ -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.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
* 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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								imgs/colab_sample.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								imgs/colab_sample.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 44 KiB  | 
							
								
								
									
										10
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user