Skip to main content

A library for slicing 3D models for 3D printing.

Project description

Downloads PyPI version GitHub stars

SlicerTools

slicertools is a Python library designed for 3D model slicing and conversion tasks, particularly focused on preparing models for 3D printing. It provides utilities for handling 3D model files, interfacing with slicing engines like CuraEngine, and managing various slicing parameters.

Installation

You can install slicertools using pip:

pip install slicertools

Usage

Convert 3D Models

Convert a 3D model file to another format:

from slicertools.utils import convert_3d

converted_file = convert_3d('path/to/your/3dmodel.stl')
print(f'Converted file: {converted_file}')

Slice a Model

Slice a 3D model using pre-defined quality settings:

from dataclasses import asdict
from slicertools.enums import QualitySlice
from slicertools.materials import PETG
from slicertools.slicers import CuraSlicer

slicer = CuraSlicer(material=PETG())
result = slicer.slice('path/to/your/model.stl', **asdict(QualitySlice.STANDARD))
print(f'Slice result:\n{result}')

Features

  • 3D Model Conversion: Convert between various 3D model file formats.
  • Model Slicing: Interface with CuraEngine to slice 3D models for 3D printing.
  • Quality Presets: Pre-defined quality settings for efficient slicing.

Dependencies

  • trimesh[easy]
  • CuraEngine

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

slicertools-0.1.2.tar.gz (7.5 MB view details)

Uploaded Source

Built Distribution

slicertools-0.1.2-py3-none-any.whl (7.6 MB view details)

Uploaded Python 3

File details

Details for the file slicertools-0.1.2.tar.gz.

File metadata

  • Download URL: slicertools-0.1.2.tar.gz
  • Upload date:
  • Size: 7.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for slicertools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 943e66e7dd8b7b7d89868eea4fe2ec532a3f7c371e23cd6d399a086762b4ef61
MD5 c2451e2a7e5e1c0255b73f9ef9aef800
BLAKE2b-256 78b7d187f3dadd21204fc841c33b7a4682a10d9197208f0b42c9302a35b70cee

See more details on using hashes here.

File details

Details for the file slicertools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: slicertools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for slicertools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0f574f6f51c4a0931d58e63bbc0fffa42ff94ceda024ef1836b0085dcb1dff
MD5 934aa5c2aee75ade910b57ece420b8d0
BLAKE2b-256 b4e5cf1621929787def345950f51e247a2840c8abe34fff8a84861f0a28bdb45

See more details on using hashes here.

Supported by

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