How ultimaker/curaengine works
Project type and purpose
• CuraEngine is a C++ console-application / library for 3D‐printing GCode generation.
• It ingests 3D models (STL/mesh) + print settings and produces a GCode toolpath.
• It can run standalone via CLI or be embedded (Arcus API, Emscripten, plugins).
File structure
• Top-level CMakeLists.txt, conanfile.py, project metadata (.github/, LICENSE, README).
• src/ and include/ contain the engine’s core:
• communication/ – CLI, Arcus (RPC), Emscripten bindings
• slicer/ & sliceDataStorage/ – layer construction from mesh
• pathPlanning/ & infill/ – interior infill algorithms and path planning
• BeadingStrategy/ & wall‐generation modules – shell/outer walls strategies
• PrimeTower, support/, TreeSupport – support-structure generation
• FffProcessor, FffGcodeWriter – GCode serialization
• settings/ – print settings model and storage
• utils/ – generic helpers: thread pool, grids, scoring, math
• benchmark/ & stress_benchmark/ – performance tests
• tests/ – unit and integration tests
README for insights
• “Better & faster alternative to Skeinforge,” “integral part of Cura.”
• Mentions Conan packaging, CMake build, Unit tests, Plugins and Extensibility.