Skip to content

Commit

Permalink
CURA-12096 move gradual flow plugin back into the engine core (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
HellAholic authored Aug 21, 2024
2 parents f05cf24 + 6f30175 commit 1b78d4f
Show file tree
Hide file tree
Showing 8 changed files with 661 additions and 3 deletions.
6 changes: 6 additions & 0 deletions include/LayerPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,12 @@ class LayerPlan : public NoCopy
*/
void applyBackPressureCompensation();

/*!
* If enabled, applies the gradual flow acceleration splitting, that improves printing quality when printing at very high speed,
* especially with a bowden extruder.
*/
void applyGradualFlow();

private:
/*!
* \brief Compute the preferred or minimum combing boundary
Expand Down
2 changes: 1 addition & 1 deletion include/geometry/LinesSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class LinesSet
template<class OtherLineType>
void push_back(LinesSet<OtherLineType>&& lines_set);

/*! \brief Pushes an entier set at the end */
/*! \brief Pushes an entire set at the end */
void push_back(const LinesSet& other)
{
lines_.insert(lines_.end(), other.lines_.begin(), other.lines_.end());
Expand Down
6 changes: 6 additions & 0 deletions include/geometry/PointsSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class PointsSet
points_.push_back(point);
}

/*! \brief Pushes an entire set at the end */
void push_back(const PointsSet& other)
{
points_.insert(points_.end(), other.points_.begin(), other.points_.end());
}

void emplace_back(auto&&... args)
{
points_.emplace_back(std::forward<decltype(args)>(args)...);
Expand Down
Loading

0 comments on commit 1b78d4f

Please sign in to comment.