WIP: Reworking of FillRectilinear2 to support monotonous infill

with ant colony optimization and 3-opt flips.
This commit is contained in:
bubnikv 2020-04-22 10:54:11 +02:00
parent 10110ed307
commit 03eb5ffcd5
3 changed files with 1445 additions and 569 deletions

View file

@ -5,6 +5,7 @@
#include <memory.h>
#include <float.h>
#include <stdint.h>
#include <stdexcept>
#include <type_traits>
@ -18,6 +19,11 @@ namespace Slic3r {
class ExPolygon;
class Surface;
class InfillFailedException : public std::runtime_error {
public:
InfillFailedException() : std::runtime_error("Infill failed") {}
};
struct FillParams
{
bool full_infill() const { return density > 0.9999f; }