slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.28k stars 1.29k forks source link

Any examples for simple uses of the libSlic3r API #5143

Open MBeghal opened 1 year ago

MBeghal commented 1 year ago

Hi,

I am developing a software in C++ and have successfully imported the libslic3r libraries into my project. I was wondering if there are any examples out there (even very simple ones) of using the API to import a model, slice it and exporting GCode. Basically anything to help me get started on how to use the API beyond the list of classes and methods.

Any help is much appreciated.

Patlax commented 5 months ago

@MBeghal there are some test-files inside slic3r itself (slic3r>slic3r>src>test) you can use as examples. Also, I found this python-slic3r-api helpfull: https://github.com/VasanthBalguri/slic3r-python/tree/master.

Do you have some advice on how to import libslic3r into your project? How did you manage it? I would really be thankfull for your advice!