This is a command-line interface (CLI) project based on the OrcaSlicer slicing engine. It performs slicing of 3D models (STL, OBJ, STEP, 3MF) into layers and exports the result in binary and visual formats (OBJ/MTL, optional PNG).
- 
Supports STL, OBJ, STEP, 3MF input formats 
- 
Slices models using OrcaSlicer engine 
- 
Exports slicing layers to: - Binary .binfiles (one per layer)
- .obj+- .mtlfiles with color-coded layers (for testing; disable in production)
- Optional: preview PNG (for testing; currently commented out)
 
- Binary 
- 
Parses and re-reads sliced binary data for verification 
- 
Automatically aligns model to Z=0 
- 
Simplified slicing configuration (no extrusion, no infill) 
Ensure all required dependencies are built first:
./BuildLinux.sh -dbc   # Build deps in Debug mode
./BuildLinux.sh -dc    # Build deps in Release modeOn a fresh Linux installation, you may also need to install minimal system packages: ./install_min_sys_deps.sh
Then build the application:
./BuildLinux.sh -s     # Build the orca-slicer CLIRun with a model file and optional layer height:
./run.sh model.stl 0.2Run built binary directly:
./bin/orca-slicer path/to/model.stl 0.2Run built-in test with default cube:
./run.sh testShow help:
./run.sh -h- 
Creates a folder <model_name>/next to input file
- 
Stores: - Layer binary files: layer_0.bin,layer_1.bin, ...
- Colorized OBJ + MTL: layers.obj,layers.mtl(test feature; disable in release)
- (Optional) PNG preview image: layers.png(test feature; commented in code)
 
- Layer binary files: 
- 
Build type (Debug/Release) must match between the IDE and the prebuilt dependencies: - If deps are built in Debug (./BuildLinux.sh -dbc), the IDE build must also use Debug
- If deps are built in Release (./BuildLinux.sh -dc), the IDE build must also use Release
- Mismatched build types will result in linker errors (e.g., missing debug symbols or duplicated symbols)
 
- If deps are built in Debug (
- 
Uses stb_image_writefor PNG export (currently commented out)
- 
All output directories are created or cleaned automatically 
- 
Model is recentred vertically to rest on the build plate 
See OrcaSlicer_cli.cpp for full implementation.