mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Improve connect infill for multiline (#11765)
* Improve connect infill for multiline * Simplify multiline infill connection logic
This commit is contained in:
@@ -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_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));
|
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];
|
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];
|
const std::vector<double> &contour_params = graph.boundary_params[cp1->contour_idx];
|
||||||
if (polyline_idx1 != polyline_idx2) {
|
if (polyline_idx1 != polyline_idx2) {
|
||||||
Polyline &polyline1 = infill_ordered[polyline_idx1];
|
Polyline &polyline1 = infill_ordered[polyline_idx1];
|
||||||
|
|||||||
Reference in New Issue
Block a user