Skip to content

An OpenGL STL slicer in Python and C++ for DLP stereolithographic 3D printer

License

Notifications You must be signed in to change notification settings

3D-Printing-for-Microfluidics/OpenGL-STL-slicer

Repository files navigation

STL slicer using OpenGL

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.

GUI Example

To install on Windows

Steps:

  • Install Python Anaconda (Python 3.7.3)
  • Create and activate virtual environment
  • Install dependencies

Install Python Anaconda

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.

Create and Activate Virtual Environment

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

Acknowledgement

The algorithm used here is from Matt Keeter. Here are his JavaScript version and his explanation.