GCodeViewer -> Export of extrude toolpaths to obj files

This commit is contained in:
enricoturri1966 2020-07-03 12:17:12 +02:00
parent feb4857cf8
commit 0b1086f390
6 changed files with 300 additions and 10 deletions

View file

@ -1017,6 +1017,7 @@ bool GLVolumeCollection::has_toolpaths_to_export() const
return false;
}
#if !ENABLE_GCODE_VIEWER
void GLVolumeCollection::export_toolpaths_to_obj(const char* filename) const
{
if (filename == nullptr)
@ -1298,6 +1299,7 @@ void GLVolumeCollection::export_toolpaths_to_obj(const char* filename) const
fclose(fp);
}
#endif // !ENABLE_GCODE_VIEWER
// caller is responsible for supplying NO lines with zero length
static void thick_lines_to_indexed_vertex_array(