fix for statistics

This commit is contained in:
tamasmeszaros 2019-03-29 17:20:19 +01:00
parent 725f115756
commit 6593421802
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ public:
inline void draw_polygon(const ClipperLib::Polygon& p, unsigned lyr) { inline void draw_polygon(const ClipperLib::Polygon& p, unsigned lyr) {
assert(lyr < m_layers_rst.size()); assert(lyr < m_layers_rst.size());
m_layers_rst[lyr].first.draw(p); m_layers_rst[lyr].raster.draw(p);
} }
inline void begin_layer(unsigned lyr) { inline void begin_layer(unsigned lyr) {

View File

@ -1143,7 +1143,7 @@ void SLAPrint::process()
for (const ClipperPolygon& polygon : supports_polygons) for (const ClipperPolygon& polygon : supports_polygons)
layer_support_area += area(polygon); layer_support_area += area(polygon);
if (layer_support_area < 0 || layer_model_area > 0) if (layer_support_area < 0 || layer_support_area > 0)
supports_volume += layer_support_area * l_height; supports_volume += layer_support_area * l_height;
// Here we can save the expensively calculated polygons for printing // Here we can save the expensively calculated polygons for printing