Slice STL files to black-and-white png images that are used in stereolithographic 3D printing.
To use app_pyopengl.py
, make sure glfw is installed. Mac users can use brew
to install it.
Steps:
- Install Python Anaconda (Python 3.7.3)
- Create and activate virtual environment
- Install dependencies
Follow the installation instructions found here. Be sure to get Python 3.7.3. Be sure to check the box to add it to your path.
In a shell of your choice:
# install virtualenv
pip install virtualenv
# create new virtual environment named 'env'
python -m virtualenv env
# activate the virtual environment
.\env\Scripts\activate
# install all dependencies
pip install -r .\req.txt
When you want to use the slicer, you will have to activate the virtual environment again with
# activate virtual environment
.\env\Scripts\activate
# run slicer with the GUI
python slicer_gui.py
The algorithm used here is from Matt Keeter. Here are his JavaScript version and his explanation.