Holes now printed correctly. export changed to pgm which is grayscale.

This commit is contained in:
tamasmeszaros 2018-05-18 15:08:18 +02:00
parent c3a944ef97
commit d97939c012
3 changed files with 147 additions and 92 deletions

View file

@ -2,7 +2,7 @@
#define RASTERIZER_HPP
#include <ostream>
#include <Polygon.hpp>
#include <ExPolygon.hpp>
namespace Slic3r {
@ -33,13 +33,20 @@ public:
};
explicit Raster(const Resolution& r, const PixelDim& pd );
Raster();
~Raster();
Raster(const Raster& cpy);
Raster(Raster&& m);
void reset(const Resolution& r, const PixelDim& pd);
void reset();
Resolution resolution() const;
void clear();
void draw(const Polygon& poly);
void draw(const ExPolygon& poly);
void save(std::ostream& stream, Compression comp = Compression::RAW);
};