Skip to content

Commit

Permalink
Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
saumyaj3 authored and github-actions[bot] committed May 2, 2024
1 parent 7229363 commit c3d155d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/PathOrderOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PathOrderOptimizer
, reverse_direction_(reverse_direction)
, _group_outer_walls(group_outer_walls)
, order_requirements_(&order_requirements)
, disallowed_area{disallowed_areas}
, disallowed_area{ disallowed_areas }

{
}
Expand Down
2 changes: 1 addition & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3459,7 +3459,7 @@ bool FffGcodeWriter::processSupportInfill(const SliceDataStorage& storage, Layer
constexpr coord_t wipe_dist = 0;
ZSeamConfig z_seam_config
= ZSeamConfig(EZSeamType::SHORTEST, gcode_layer.getLastPlannedPositionOrStartingPosition(), EZSeamCornerPrefType::Z_SEAM_CORNER_PREF_NONE, false);
Polygons disallowed_area {};
Polygons disallowed_area{};
if (infill_extruder.settings_.get<bool>("support_z_seam_away_from_model"))
{
for (std::shared_ptr<SliceMeshStorage> mesh_ptr : storage.meshes)
Expand Down
13 changes: 10 additions & 3 deletions src/InsetOrderOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ InsetOrderOptimizer::InsetOrderOptimizer(
, z_seam_config_(z_seam_config)
, paths_(paths)
, layer_nr_(gcode_layer.getLayerNr())
, disallowed_areas_{disallowed_areas}
, disallowed_areas_{ disallowed_areas }
{
}

Expand Down Expand Up @@ -100,8 +100,15 @@ bool InsetOrderOptimizer::addToLayer()
const auto group_outer_walls = settings_.get<bool>("group_outer_walls");
// When we alternate walls, also alternate the direction at which the first wall starts in.
// On even layers we start with normal direction, on odd layers with inverted direction.
PathOrderOptimizer<const ExtrusionLine*>
order_optimizer(gcode_layer_.getLastPlannedPositionOrStartingPosition(), z_seam_config_, detect_loops, combing_boundary, reverse, order, group_outer_walls, disallowed_areas_);
PathOrderOptimizer<const ExtrusionLine*> order_optimizer(
gcode_layer_.getLastPlannedPositionOrStartingPosition(),
z_seam_config_,
detect_loops,
combing_boundary,
reverse,
order,
group_outer_walls,
disallowed_areas_);

for (const auto& line : walls_to_be_added)
{
Expand Down

0 comments on commit c3d155d

Please sign in to comment.