Skip to main content

An STL to GCode slicer for 3D printing, using the clipper libraries.

Project description

This is a 3D printing STL-to-GCode slicer, written in Python, based on the Clipper geometry library. It will let you take STL files and generate a GCode path file that you can send to your RepRap 3D printer to print the object.

Installation

Install using PyPi (NOT IMPLEMENTED YET):

unzip mandoline-py.zip
cd mandoline-py
pip3 install .

Installing from sources:

python3 setup.py build install

Usage

To just validate a model, checking it for manifold errors, just run mandoline with the name of the file:

mandoline testcube.stl

Any error messages will be printed to STDERR, and the return code will be non-zero if errors were found.

To slice a file into GCode, you need to specify the file to write to with the -o OUTFILE arguments:

mandoline -o testcube.gcode testcube.stl

If you want to force it to skip validation, then add the -n argument:

mandoline -o testcube.gcode -n testcube.stl

To display all slicing config options, use the –show-configs argument:

mandoline --show-configs

To get descriptions about all slicing config options, use the –help-configs argument:

mandoline --help-configs

You can set slicing options on the command-line with -S NAME=VALUE args:

mandoline -S layer_height=0.3 -S skirt_loops=3

You can write changed options to the persistent slicing configs file using the -w argument:

mandoline -S layer_height=0.3 -S brim_loops=3 -w

You can query the value of a slicing config option with the -q OPTNAME argument:

mandoline -q layer_height -q brim_loops

You can view the sliced output in a GUI window if you add the -g argument. In this window, up and down arrow keys will move through the slice layers, and the ‘q’ key will quit and close the window. The keys 1 - 4 or - and = will zoom the image.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mandoline-py-0.8.2.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mandoline_py-0.8.2-py2.py3-none-any.whl (36.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mandoline-py-0.8.2.tar.gz.

File metadata

  • Download URL: mandoline-py-0.8.2.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0

File hashes

Hashes for mandoline-py-0.8.2.tar.gz
Algorithm Hash digest
SHA256 be94fefcd953ea94893f3a93d90b3b01cfd04ac0d5ceadb21178dede3309963f
MD5 19db4a51fbee0d268103beda4da7b920
BLAKE2b-256 0891faab7bdf532fd2d6537cbcfc354995c325253df9701d375f698b88611be5

See more details on using hashes here.

File details

Details for the file mandoline_py-0.8.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mandoline_py-0.8.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0

File hashes

Hashes for mandoline_py-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4c9e89e757ae627922b6da861809c1ff508349860559eef65cdcbd76681ad7cb
MD5 5da8d9eb524667d7eb6fc4bdc17f6b47
BLAKE2b-256 922ce706be50a8717fcd6d3de8322f94feec544e031afe83b34bbee610600686

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page