Support generator now produce two contact layers per object layer:

One contact layer to support the bridging flow extrusions, and
the other contact layer to support the non-bridging flow extrusions.
This commit is contained in:
bubnikv
2018-07-26 11:33:57 +02:00
parent a7fbb70bcf
commit 9d0093e474
2 changed files with 207 additions and 103 deletions

View File

@@ -71,6 +71,21 @@ public:
overhang_polygons = nullptr;
}
void reset() {
layer_type = sltUnknown;
print_z = 0.;
bottom_z = 0.;
height = 0.;
idx_object_layer_above = size_t(-1);
idx_object_layer_below = size_t(-1);
bridging = false;
polygons.clear();
delete contact_polygons;
contact_polygons = nullptr;
delete overhang_polygons;
overhang_polygons = nullptr;
}
bool operator==(const MyLayer &layer2) const {
return print_z == layer2.print_z && height == layer2.height && bridging == layer2.bridging;
}