2021-11-13 06:26:55 -07:00
|
|
|
# Obj2Html
|
|
|
|
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.
|
|
|
|
|
2021-11-13 06:55:57 -07:00
|
|
|
* run into jupyter notebook
|
|
|
|
```
|
|
|
|
!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'))
|
|
|
|
```
|
|
|
|
|
2021-11-13 06:26:55 -07:00
|
|
|
## Features
|
2021-11-13 06:57:56 -07:00
|
|
|
|
|
|
|
- [ ] .obj files support
|
|
|
|
- [ ] pipy delivery
|
|
|
|
- [ ] guide for notebook
|
|
|
|
- [ ] edit html positions and other 3D params
|
|
|
|
- [ ] load three.js as static file
|
|
|
|
- [ ] .mat files support
|
2021-11-13 06:26:55 -07:00
|
|
|
|
2021-11-13 06:55:57 -07:00
|
|
|
# Dev
|
|
|
|
```
|
|
|
|
python3.8 -m unittest discover
|
|
|
|
|
|
|
|
|
|
|
|
pip install coverage
|
|
|
|
python3.8 -m coverage run --source=src -m unittest discover
|
|
|
|
python3.8 -m coverage report -m
|
|
|
|
```
|
|
|
|
|
2021-11-13 06:26:55 -07:00
|
|
|
# References
|
|
|
|
In this chapter I add at least a link for each of the knowledge needed for develop this project.
|
|
|
|
* python
|
|
|
|
* git
|
|
|
|
* how to use setup.py
|
|
|
|
* python test
|
|
|
|
* coverage
|
|
|
|
* gitlab ci/cd
|
|
|
|
* three.js
|