ENH: increase grid infill's strength

Previously grid infill may be cut, so the strength on one direction is too weak. Now we switch the order at neighboring layers, so the strength of both directions are good enough.

Change-Id: I0ba768eeee34ce430e43ea57d8f06c209d469d39
This commit is contained in:
Jianjia authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent c7278dffeb
commit e1cfd11100
7 files changed
+105 -18

No files matched your search

+2 -2
View File
@@ -4436,9 +4436,9 @@ void GCode::ObjectByExtruder::Island::Region::append(const Type type, const Extr
// First we append the entities, there are eec->entities.size() of them:
size_t old_size = perimeters_or_infills->size();
size_t new_size = old_size + (eec->can_reverse() ? eec->entities.size() : 1);
size_t new_size = old_size + (eec->can_sort() ? eec->entities.size() : 1);
perimeters_or_infills->reserve(new_size);
if (eec->can_reverse()) {
if (eec->can_sort()) {
for (auto* ee : eec->entities)
perimeters_or_infills->emplace_back(ee);
} else