WIP: Ironing over top surfaces.

This commit is contained in:
bubnikv 2020-04-14 11:53:28 +02:00
parent b578b7ec87
commit 10110ed307
19 changed files with 321 additions and 38 deletions

View file

@ -20,27 +20,21 @@ class Surface;
struct FillParams
{
FillParams() {
memset(this, 0, sizeof(FillParams));
// Adjustment does not work.
dont_adjust = true;
}
bool full_infill() const { return density > 0.9999f; }
// Fill density, fraction in <0, 1>
float density;
float density { 0.f };
// Don't connect the fill lines around the inner perimeter.
bool dont_connect;
bool dont_connect { false };
// Don't adjust spacing to fill the space evenly.
bool dont_adjust;
bool dont_adjust { true };
// For Honeycomb.
// we were requested to complete each loop;
// in this case we don't try to make more continuous paths
bool complete;
bool complete { false };
};
static_assert(IsTriviallyCopyable<FillParams>::value, "FillParams class is not POD (and it should be - see constructor).");