|Thomas Forgione a8d809a7ea||2 years ago|
|assets||3 years ago|
|d3||2 years ago|
|.gitignore||2 years ago|
|LICENSE||3 years ago|
|README.md||3 years ago|
|convert.py||3 years ago|
|viewer.py||2 years ago|
This project aims to be a simple, lightweight, and useful 3D model editor.
For the moment, only
ply ascii and
stl models are supported.
Feel free to open an issue if you find anything wrong in this.
A few utilities to manage 3D models :
convert.pythat converts any type of model to any other
viewer.pywhich is a simple script that renders a 3d model
This project is written in python 3. The
convert.py script is made for
needing nothing else than python. However, the
viewer.py script has a few
dependencies, you'll need :
sudo apt-get install python3-pipfor example
sudo pip install pillow
sudo pip install numpy
sudo pip install pygame
sudo pip install pyopengl
If you want to add a new format to this converter, it should be easy enough,
you just have to create a python file in
d3/model/formats that should :
The parser should inherit the
ModelParser class in the
ModelParser class has everything needed to create a 3D model and render it.
The exporter should inherit the
Exporter class in the
It should have a constructor that takes a
ModelParser has parameter and a
__str__ method that should compute the export.
Here is the list of all the supported formats