My own slicer implemented using Dependency Injection in .NET 6.
Build:
dotnet build
Run:
dotnet run -p ConsoleSlicerDI -- <options>
Options:
-o, --output Provide an output file path.
-i, --input Provide an STL file path.
-p, --parallel Slice in parallel.
-m, --mediatr Use mediatR.
--help Display this help screen.
--version Display version information.
Compare different implementation using BenchmarkDotNet.
Console application that calls the Slicer.
How does Dependency Injection work? Find out by creating you own framework implementatie.
Core of the slicing algorithm:
- Read 3D model
- Create layers
- Fill layers
- Add additional structures (brim)
- Sort layers
- Create Gcode
Use MediatR and define a Slice command/request and the corresponsing handler.
Unit tests for the Slicer project.