Skip to content

Commit a17dbfa

Browse files
committed
Remove bridging over infill
CURA-12361
1 parent bea0980 commit a17dbfa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bridge.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,18 +556,14 @@ std::optional<AngleDegrees> bridgeAngle(
556556
Shape prev_layer_outline; // we also want the complete outline of the previous layer
557557
Shape prev_layer_infill;
558558

559-
const Ratio sparse_infill_max_density = settings.get<Ratio>("bridge_sparse_infill_max_density");
560-
561559
// include parts from all meshes
562560
for (const std::shared_ptr<SliceMeshStorage>& mesh_ptr : storage.meshes)
563561
{
564562
const auto& mesh = *mesh_ptr;
565563
if (mesh.isPrinted())
566564
{
567565
const coord_t infill_line_distance = mesh.settings.get<coord_t>("infill_line_distance");
568-
const coord_t infill_line_width = mesh.settings.get<coord_t>("infill_line_width");
569-
double density = static_cast<double>(infill_line_width) / static_cast<double>(infill_line_distance);
570-
const bool part_has_sparse_infill = (infill_line_distance == 0) || density <= sparse_infill_max_density;
566+
const bool part_has_sparse_infill = infill_line_distance == 0;
571567

572568
for (const SliceLayerPart& prev_layer_part : mesh.layers[layer_nr - bridge_layer].parts)
573569
{

0 commit comments

Comments
 (0)