Overview
Mslicer includes several post-processing operations that run after the initial slicing process to improve print quality. These operations are applied to the sliced layers before the file is saved.Anti-Aliasing
Anti-aliasing smooths the edges of sliced layers using a Gaussian blur, reducing the appearance of layer lines and improving surface quality.How It Works
The anti-aliasing algorithm uses a fast Gaussian blur implementation from thelibblur library:
- Processes each layer in parallel for performance
- Applies an anisotropic Gaussian blur with configurable radius
- Uses clamp edge mode to prevent artifacts at boundaries
- Operates on grayscale image data
Configuration
Enabled: Boolean flag to enable/disable anti-aliasingRadius: Blur radius in pixels (default: 1.0)
When to Use
Enable For
- Models with visible layer lines
- Detailed miniatures
- Smooth curved surfaces
- Display pieces
Disable For
- Mechanical parts needing sharp edges
- Models with fine text
- When maximum detail is critical
- Very small features
Performance
Anti-aliasing uses parallel processing with Rayon:Anti-aliasing typically adds 10-30 seconds to the slicing process depending on the number of layers and blur radius.
Elephant Foot Compensation
Elephant foot is a common 3D printing issue where the first few layers are wider than intended due to the weight of the model compressing the uncured resin. The elephant foot fixer compensates for this by reducing the intensity of pixels near the edges of bottom layers.How It Works
The algorithm uses morphological erosion to detect and fix elephant foot:-
Calculates erosion radius based on physical dimensions:
- Generates elliptical mask for erosion
- Applies grayscale erosion to detect edge pixels
- Darkens edge pixels by the intensity multiplier
Configuration
Enabled: Boolean flag to enable/disable elephant foot compensation Inset Distance: Physical distance to inset from edges in millimeters (default: 0.5)This controls how far from the edge the compensation extends. Intensity Multiplier: Percentage of original brightness to maintain (default: 30.0)
For example, 30.0 means edge pixels are reduced to 30% of their original intensity.
Example Configuration
Visual Explanation
Processing Details
Only the first few layers are processed:bottom_layers configuration in the slice settings.
Performance Logging
The operation logs timing information:Mask Generation
Both operations use specialized mask generation:Elliptical Mask
The elephant foot fixer generates an elliptical mask for anisotropic erosion:Serialization
Both post-processing operations can be serialized and deserialized:Anti-Aliasing Format
Elephant Foot Fixer Format
Best Practices
Combine Operations
Combine Operations
Anti-aliasing and elephant foot compensation can be used together:
- Elephant foot fixer runs first (modifies bottom layers)
- Anti-aliasing runs second (smooths all layers)
Test Settings
Test Settings
Always test post-processing settings with small test prints:
- Slice a small calibration piece with default settings
- Adjust one parameter at a time
- Compare results and note improvements
- Save successful configurations for future use
Consider Print Time
Consider Print Time
Post-processing adds time to the slicing process:
- Anti-aliasing: ~10-30 seconds for typical models
- Elephant foot: ~1-3 seconds for bottom layers