2016-04-13 18:46:45 +00:00
|
|
|
#ifndef slic3r_FillRectilinear2_hpp_
|
|
|
|
#define slic3r_FillRectilinear2_hpp_
|
|
|
|
|
|
|
|
#include "../libslic3r.h"
|
|
|
|
|
|
|
|
#include "FillBase.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class Surface;
|
|
|
|
|
2016-09-13 09:26:38 +00:00
|
|
|
class FillRectilinear2 : public Fill
|
2016-04-13 18:46:45 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-11-30 18:47:45 +00:00
|
|
|
virtual Fill* clone() const { return new FillRectilinear2(*this); };
|
2016-04-13 18:46:45 +00:00
|
|
|
virtual ~FillRectilinear2() {}
|
|
|
|
virtual Polylines fill_surface(const Surface *surface, const FillParams ¶ms);
|
|
|
|
|
|
|
|
protected:
|
2016-10-21 16:56:55 +00:00
|
|
|
bool fill_surface_by_lines(const Surface *surface, const FillParams ¶ms, float angleBase, float pattern_shift, Polylines &polylines_out);
|
2016-04-13 18:46:45 +00:00
|
|
|
};
|
|
|
|
|
2016-04-14 09:17:44 +00:00
|
|
|
class FillGrid2 : public FillRectilinear2
|
|
|
|
{
|
|
|
|
public:
|
2016-11-30 18:47:45 +00:00
|
|
|
virtual Fill* clone() const { return new FillGrid2(*this); };
|
2016-04-14 09:17:44 +00:00
|
|
|
virtual ~FillGrid2() {}
|
2016-09-13 09:26:38 +00:00
|
|
|
virtual Polylines fill_surface(const Surface *surface, const FillParams ¶ms);
|
2016-04-14 09:17:44 +00:00
|
|
|
|
|
|
|
protected:
|
2016-11-02 09:47:00 +00:00
|
|
|
// The grid fill will keep the angle constant between the layers, see the implementation of Slic3r::Fill.
|
2016-04-14 09:17:44 +00:00
|
|
|
virtual float _layer_angle(size_t idx) const { return 0.f; }
|
|
|
|
};
|
|
|
|
|
2016-10-21 14:53:42 +00:00
|
|
|
class FillTriangles : public FillRectilinear2
|
|
|
|
{
|
|
|
|
public:
|
2016-11-30 18:47:45 +00:00
|
|
|
virtual Fill* clone() const { return new FillTriangles(*this); };
|
2016-10-21 14:53:42 +00:00
|
|
|
virtual ~FillTriangles() {}
|
|
|
|
virtual Polylines fill_surface(const Surface *surface, const FillParams ¶ms);
|
|
|
|
|
|
|
|
protected:
|
2016-11-02 09:47:00 +00:00
|
|
|
// The grid fill will keep the angle constant between the layers, see the implementation of Slic3r::Fill.
|
2016-10-21 14:53:42 +00:00
|
|
|
virtual float _layer_angle(size_t idx) const { return 0.f; }
|
|
|
|
};
|
|
|
|
|
2016-11-09 14:39:12 +00:00
|
|
|
class FillStars : public FillRectilinear2
|
|
|
|
{
|
|
|
|
public:
|
2016-11-30 18:47:45 +00:00
|
|
|
virtual Fill* clone() const { return new FillStars(*this); };
|
2016-11-09 14:39:12 +00:00
|
|
|
virtual ~FillStars() {}
|
|
|
|
virtual Polylines fill_surface(const Surface *surface, const FillParams ¶ms);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// The grid fill will keep the angle constant between the layers, see the implementation of Slic3r::Fill.
|
|
|
|
virtual float _layer_angle(size_t idx) const { return 0.f; }
|
|
|
|
};
|
|
|
|
|
2016-10-21 16:56:55 +00:00
|
|
|
class FillCubic : public FillRectilinear2
|
|
|
|
{
|
|
|
|
public:
|
2016-11-30 18:47:45 +00:00
|
|
|
virtual Fill* clone() const { return new FillCubic(*this); };
|
2016-10-21 16:56:55 +00:00
|
|
|
virtual ~FillCubic() {}
|
|
|
|
virtual Polylines fill_surface(const Surface *surface, const FillParams ¶ms);
|
|
|
|
|
|
|
|
protected:
|
2016-11-02 09:47:00 +00:00
|
|
|
// The grid fill will keep the angle constant between the layers, see the implementation of Slic3r::Fill.
|
2016-10-21 16:56:55 +00:00
|
|
|
virtual float _layer_angle(size_t idx) const { return 0.f; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-04-13 18:46:45 +00:00
|
|
|
}; // namespace Slic3r
|
|
|
|
|
|
|
|
#endif // slic3r_FillRectilinear2_hpp_
|