CuraEngine is a powerful, fast and robust engine for processing 3D models into 3D printing instruction for Ultimaker and other GCode based 3D printers. It is part of the larger open source project called "Cura".
Seems to work fine on latest dev branch, currently the seg distance is hardcoded to 1 radian, seems to be good enough for now. Also made the simulation look nicer while I was at it
Should be in the Cura issues, but basically cura should cut up the lines before sending them to the shader not in the shader