Overview
Theslicer command is the CLI tool for slicing 3D mesh files (STL, OBJ) into layered formats for MSLA 3D printers. It processes mesh files, applies transformations, and outputs files compatible with various printer formats.
Basic Usage
Quick Examples
Single Model
Slice a single STL file with default settings:Multiple Models
Slice multiple models onto the same build plate:With Custom Settings
Configure platform size, layer height, and exposure settings:With Preview Image
Include a preview thumbnail in the output file:Output Formats
The output format is determined by the file extension:File to save sliced result to. The extension determines the output format.Supported formats:
.goo- Elegoo format (v3.0).ctb- ChituBox encrypted format (v5).nanodlp- NanoDLP format.svg- Vector format (for debugging)
Model Processing
When loading models, the slicer:- Loads the mesh from STL or OBJ format
- Applies transformations in this order:
- Scale (from
--scaleflag) - Rotation (from
--rotationflag, in degrees) - Position (from
--positionflag)
- Scale (from
- Centers the model on the build plate
- Converts to printer space (millimeters to pixels)
- Validates bounds and warns if the model extends outside the print volume
Progress Output
The slicer displays real-time progress:Model Transformations
Transformations are applied per-model and must follow the corresponding--mesh flag:
model1.stlgets scaled 2x and rotated 45° on the X axismodel2.stlgets positioned at (100, 50, 0)
Error Handling
The slicer will display warnings for:- Out of bounds models: Model extends outside print volume (will be cut off)
- Missing files: Input mesh file not found
- Invalid formats: Unsupported mesh or output format
- Invalid parameters: Malformed vector values or missing required arguments
See Also
- CLI Options - Complete list of all command-line options
- Supported Mesh Formats - STL and OBJ format details
- Project Files - Native project file format