Added calculation of the material consumption

This commit is contained in:
YuSanka 2019-02-13 15:35:41 +01:00
parent 589ac889a3
commit 88f04e0fae
3 changed files with 64 additions and 13 deletions

View file

@ -175,7 +175,8 @@ struct SLAPrintStatistics
{
SLAPrintStatistics() { clear(); }
std::string estimated_print_time;
double total_used_material;
double objects_used_material;
double support_used_material;
double total_cost;
double total_weight;
@ -188,7 +189,8 @@ struct SLAPrintStatistics
void clear() {
estimated_print_time.clear();
total_used_material = 0.;
objects_used_material = 0.;
support_used_material = 0.;
total_cost = 0.;
total_weight = 0.;
}