Skip to content

Commit 23a3a3f

Browse files
committed
Remove debug code
CURA-11966
1 parent 0c00e15 commit 23a3a3f

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

include/LayerPlan.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ class LayerPlan : public NoCopy
401401
const bool travel_to_z = true);
402402

403403
void addExtrusionMoveWithGradualOverhang(
404-
SVG& logger,
405404
const Point3LL& p,
406405
const GCodePathConfig& config,
407406
const SpaceFillType space_fill_type,

src/LayerPlan.cpp

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ void LayerPlan::addExtrusionMove(
559559
}
560560

561561
void LayerPlan::addExtrusionMoveWithGradualOverhang(
562-
SVG& logger,
563562
const Point3LL& p,
564563
const GCodePathConfig& config,
565564
const SpaceFillType space_fill_type,
@@ -660,7 +659,6 @@ void LayerPlan::addExtrusionMoveWithGradualOverhang(
660659

661660
// Move to intersection at current region speed
662661
const Point2LL split_position = start + vector * intersection_parameter;
663-
logger.writeLine(last_planned_position_.value(), split_position, colors[actual_speed_region_index], 0.02);
664662
add_extrusion_move(split_position, overhang_masks_[actual_speed_region_index].speed_ratio);
665663

666664
// Prepare for next move in different region
@@ -670,7 +668,6 @@ void LayerPlan::addExtrusionMoveWithGradualOverhang(
670668
else
671669
{
672670
// We cross no border, which means we can reach the end of the segment within the current speed region, so we are done
673-
logger.writeLine(last_planned_position_.value(), p.toPoint2LL(), colors[actual_speed_region_index], 0.025);
674671
add_extrusion_move(p, overhang_masks_[actual_speed_region_index].speed_ratio);
675672
return;
676673
}
@@ -830,9 +827,6 @@ void LayerPlan::addPolygonsByOptimizer(
830827

831828
static constexpr double max_non_bridge_line_volume = MM2INT(100); // limit to accumulated "volume" of non-bridge lines which is proportional to distance x extrusion rate
832829

833-
#warning remove this
834-
std::map<LayerIndex, size_t> counts;
835-
836830
void LayerPlan::addWallLine(
837831
const Point3LL& p0,
838832
const Point3LL& p1,
@@ -857,23 +851,6 @@ void LayerPlan::addWallLine(
857851

858852
Point3LL cur_point = p0;
859853

860-
#warning remove SVG writing
861-
size_t count = 0;
862-
if (counts.contains(layer_nr_))
863-
{
864-
count = counts[layer_nr_] + 1;
865-
}
866-
counts[layer_nr_] = count;
867-
868-
SVG svg(fmt::format("/tmp/overhang_mask_{}_{}.svg", layer_nr_.value, count), storage_.getMachineBorder(), 0.001);
869-
870-
for (const OverhangMask& mask : overhang_masks_)
871-
{
872-
svg.writePolygons(mask.supported_region, SVG::Color::MAGENTA, 0.01);
873-
}
874-
875-
svg.writePolygons(bridge_wall_mask_, SVG::Color::ORANGE, 0.01);
876-
877854
// helper function to add a single non-bridge line
878855

879856
// If the line precedes a bridge line, it may be coasted to reduce the nozzle pressure before the bridge is reached
@@ -937,7 +914,6 @@ void LayerPlan::addWallLine(
937914
{
938915
// no coasting required, just normal segment using non-bridge config
939916
addExtrusionMoveWithGradualOverhang(
940-
svg,
941917
segment_end,
942918
default_config,
943919
SpaceFillType::Polygons,
@@ -955,7 +931,6 @@ void LayerPlan::addWallLine(
955931
{
956932
// no coasting required, just normal segment using non-bridge config
957933
addExtrusionMoveWithGradualOverhang(
958-
svg,
959934
segment_end,
960935
default_config,
961936
SpaceFillType::Polygons,
@@ -1061,7 +1036,6 @@ void LayerPlan::addWallLine(
10611036
{
10621037
// no bridges required
10631038
addExtrusionMoveWithGradualOverhang(
1064-
svg,
10651039
p1,
10661040
default_config,
10671041
SpaceFillType::Polygons,
@@ -1128,7 +1102,6 @@ void LayerPlan::addWallLine(
11281102
if (bridge_line_len > min_line_len)
11291103
{
11301104
addExtrusionMoveWithGradualOverhang(
1131-
svg,
11321105
b1,
11331106
bridge_config,
11341107
SpaceFillType::Polygons,
@@ -1161,7 +1134,7 @@ void LayerPlan::addWallLine(
11611134
else if (bridge_wall_mask_.inside(p0.toPoint2LL(), true) && (p0 - p1).vSize() >= min_bridge_line_len)
11621135
{
11631136
// both p0 and p1 must be above air (the result will be ugly!)
1164-
addExtrusionMoveWithGradualOverhang(svg, p1, bridge_config, SpaceFillType::Polygons, flow, width_factor);
1137+
addExtrusionMoveWithGradualOverhang(p1, bridge_config, SpaceFillType::Polygons, flow, width_factor);
11651138
non_bridge_line_volume = 0;
11661139
}
11671140
else

0 commit comments

Comments
 (0)