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

@ -4349,12 +4349,20 @@ void GLCanvas3D::update_tooltip_for_settings_item_in_main_toolbar()
bool GLCanvas3D::has_toolpaths_to_export() const
{
#if ENABLE_GCODE_VIEWER
return m_gcode_viewer.has_data();
#else
return m_volumes.has_toolpaths_to_export();
#endif // ENABLE_GCODE_VIEWER
}
void GLCanvas3D::export_toolpaths_to_obj(const char* filename) const
{
#if ENABLE_GCODE_VIEWER
m_gcode_viewer.export_toolpaths_to_obj(filename);
#else
m_volumes.export_toolpaths_to_obj(filename);
#endif // ENABLE_GCODE_VIEWER
}
void GLCanvas3D::mouse_up_cleanup()