mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-13 19:35:50 -07:00
Improve connect infill for multiline (#11765)
* Improve connect infill for multiline * Simplify multiline infill connection logic
This commit is contained in:
parent
0f397492e7
commit
2877c6032d
1 changed files with 6 additions and 0 deletions
|
|
@ -1707,6 +1707,12 @@ void Fill::connect_infill(Polylines &&infill_ordered, const std::vector<const Po
|
|||
size_t polyline_idx1 = get_and_update_merged_with(((cp1 - graph.map_infill_end_point_to_boundary.data()) / 2));
|
||||
size_t polyline_idx2 = get_and_update_merged_with(((cp2 - graph.map_infill_end_point_to_boundary.data()) / 2));
|
||||
const Points &contour = graph.boundary[cp1->contour_idx];
|
||||
|
||||
// Orca: If multiline infill is requested, skip connections that are too short.
|
||||
if (params.multiline > 1 && arc.arc_length < scale_(spacing) * params.multiline) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const std::vector<double> &contour_params = graph.boundary_params[cp1->contour_idx];
|
||||
if (polyline_idx1 != polyline_idx2) {
|
||||
Polyline &polyline1 = infill_ordered[polyline_idx1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue