Skip to content

Commit

Permalink
Merge branch 'main' into NP-327_emscripten_communication
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Aug 21, 2024
2 parents 2a6b939 + 1b78d4f commit 463df70
Show file tree
Hide file tree
Showing 15 changed files with 2,538 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/ExtruderPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class ExtruderPlan
FRIEND_TEST(ExtruderPlanPathsParameterizedTest, BackPressureCompensationFull);
FRIEND_TEST(ExtruderPlanPathsParameterizedTest, BackPressureCompensationHalf);
FRIEND_TEST(ExtruderPlanTest, BackPressureCompensationEmptyPlan);
friend class FffGcodeWriterTest_SurfaceGetsExtraInfillLinesUnderIt_Test;
#endif
public:
size_t extruder_nr_{ 0 }; //!< The extruder used for this paths in the current plan.
Expand Down
2 changes: 2 additions & 0 deletions include/FffGcodeWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ struct MeshPathConfigs;
class FffGcodeWriter : public NoCopy
{
friend class FffProcessor; // Because FffProcessor exposes finalize (TODO)
friend class FffGcodeWriterTest_SurfaceGetsExtraInfillLinesUnderIt_Test;

private:
coord_t max_object_height; //!< The maximal height of all previously sliced meshgroups, used to avoid collision when moving to the next meshgroup to print.

Expand Down
7 changes: 7 additions & 0 deletions include/LayerPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class LayerPlan : public NoCopy
friend class LayerPlanBuffer;
#ifdef BUILD_TESTS
friend class AddTravelTest;
friend class FffGcodeWriterTest_SurfaceGetsExtraInfillLinesUnderIt_Test;
#endif

public:
Expand Down Expand Up @@ -778,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 463df70

Please sign in to comment.