libslic3r
Library for generating gcode from 3d models
libslic3r Documentation