SliceConfig struct defines the fundamental parameters for slicing a 3D model into layers for resin printing. These settings determine the physical characteristics of your print and how the model is converted into printable layers.
SliceConfig Structure
The main configuration struct is defined incommon/src/slice/config.rs:14 and contains the following fields:
The output file format for sliced files. Supported formats include CTB, GOO, and others. Only
.goo and .ctb files can be sent with the Remote Print module.The resolution of the printer’s LCD screen in pixels. This determines the maximum detail your printer can produce.Default: 11,520 × 5,120 pixels (Elegoo Saturn 3 Ultra)
The physical dimensions of the build platform in millimeters (width × depth × height).Default: 218.88 × 122.904 × 260.0 mm (Elegoo Saturn 3 Ultra)The Z-axis value represents the maximum build height.
The thickness of each individual layer in millimeters. Also known as layer height.Default: 0.05 mm (50 microns)Smaller values produce higher detail but increase print time. Common values range from 0.025mm to 0.1mm.
The number of initial layers that use the first exposure configuration. These layers have longer exposure times to ensure proper adhesion to the build plate.
The number of layers that interpolate between first exposure settings and normal exposure settings. This creates a gradual transition to prevent delamination.Note: Transition layers are calculated after the first layers and interpolate between the two exposure configurations.
Calculated Properties
TheSliceConfig provides several computed properties:
Pixel Area
Calculates the physical area of a single pixel on the LCD screen:Voxel Volume
Calculates the volume of a single voxel (3D pixel):Print Time Estimation
The slicer calculates total print time based on layer count, exposure times, lift/retract distances and speeds. Seeprint_time() method in common/src/slice/config.rs:56 for the full calculation.
Usage in the UI
In the Mslicer application, these settings can be configured in the Slice Config window. Users can:- Select from predefined printer presets or use custom values
- Adjust platform resolution and size (when using custom preset)
- Configure slice height with metric input
- Set the number of first layers and transition layers