mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix build error caused by cyclic include
This commit is contained in:
@@ -48,6 +48,7 @@ using namespace nlohmann;
|
|||||||
#include "libslic3r/libslic3r.h"
|
#include "libslic3r/libslic3r.h"
|
||||||
#include "libslic3r/Config.hpp"
|
#include "libslic3r/Config.hpp"
|
||||||
#include "libslic3r/Geometry.hpp"
|
#include "libslic3r/Geometry.hpp"
|
||||||
|
#include "libslic3r/GCode.hpp"
|
||||||
#include "libslic3r/GCode/PostProcessor.hpp"
|
#include "libslic3r/GCode/PostProcessor.hpp"
|
||||||
#include "libslic3r/Model.hpp"
|
#include "libslic3r/Model.hpp"
|
||||||
#include "libslic3r/ModelArrange.hpp"
|
#include "libslic3r/ModelArrange.hpp"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include "libslic3r/GCode.hpp"
|
||||||
#include "libslic3r/Preset.hpp"
|
#include "libslic3r/Preset.hpp"
|
||||||
#include "libslic3r/Config.hpp"
|
#include "libslic3r/Config.hpp"
|
||||||
#include "libslic3r/PresetBundle.hpp"
|
#include "libslic3r/PresetBundle.hpp"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// CuraEngine is released under the terms of the AGPLv3 or higher.
|
// CuraEngine is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
#include "InterlockingGenerator.hpp"
|
#include "InterlockingGenerator.hpp"
|
||||||
|
#include "Layer.hpp"
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
template<> struct hash<Slic3r::GridPoint3>
|
template<> struct hash<Slic3r::GridPoint3>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include "../PrintConfig.hpp"
|
#include "../PrintConfig.hpp"
|
||||||
#include "../Surface.hpp"
|
#include "../Surface.hpp"
|
||||||
|
|
||||||
|
#include "AABBTreeLines.hpp"
|
||||||
#include "ExtrusionEntity.hpp"
|
#include "ExtrusionEntity.hpp"
|
||||||
#include "FillBase.hpp"
|
#include "FillBase.hpp"
|
||||||
#include "FillRectilinear.hpp"
|
#include "FillRectilinear.hpp"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#ifndef slic3r_Print_hpp_
|
#ifndef slic3r_Print_hpp_
|
||||||
#define slic3r_Print_hpp_
|
#define slic3r_Print_hpp_
|
||||||
|
|
||||||
|
#include "PrintBase.hpp"
|
||||||
#include "Fill/FillAdaptive.hpp"
|
#include "Fill/FillAdaptive.hpp"
|
||||||
#include "Fill/FillLightning.hpp"
|
#include "Fill/FillLightning.hpp"
|
||||||
#include "PrintBase.hpp"
|
|
||||||
|
|
||||||
#include "BoundingBox.hpp"
|
#include "BoundingBox.hpp"
|
||||||
#include "ExtrusionEntityCollection.hpp"
|
#include "ExtrusionEntityCollection.hpp"
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include "Fill/FillLightning.hpp"
|
#include "Fill/FillLightning.hpp"
|
||||||
#include "Format/STL.hpp"
|
#include "Format/STL.hpp"
|
||||||
#include "format.hpp"
|
#include "format.hpp"
|
||||||
|
#include "AABBTreeLines.hpp"
|
||||||
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <oneapi/tbb/blocked_range.h>
|
#include <oneapi/tbb/blocked_range.h>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include "BoundingBox.hpp"
|
#include "BoundingBox.hpp"
|
||||||
#include "Config.hpp"
|
#include "Config.hpp"
|
||||||
#include "Model.hpp"
|
#include "Model.hpp"
|
||||||
|
#include "GCode.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
@@ -755,6 +756,16 @@ Vec3d CalibPressureAdvancePattern::get_start_offset()
|
|||||||
return m_starting_point;
|
return m_starting_point;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double CalibPressureAdvancePattern::line_width() const
|
||||||
|
{
|
||||||
|
// TODO: FIXME: find out current filament/extruder?
|
||||||
|
const double nozzle_diameter = m_config.opt_float("nozzle_diameter", 0);
|
||||||
|
const double width = m_config.get_abs_value("line_width", nozzle_diameter);
|
||||||
|
if (width <= 0.)
|
||||||
|
return Flow::auto_extrusion_width(frExternalPerimeter, nozzle_diameter);
|
||||||
|
return width;
|
||||||
|
};
|
||||||
|
|
||||||
void CalibPressureAdvancePattern::refresh_setup(const DynamicPrintConfig &config,
|
void CalibPressureAdvancePattern::refresh_setup(const DynamicPrintConfig &config,
|
||||||
bool is_bbl_machine,
|
bool is_bbl_machine,
|
||||||
const ModelObject &object,
|
const ModelObject &object,
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#define calib_pressure_advance_dd
|
#define calib_pressure_advance_dd
|
||||||
|
|
||||||
#include "GCode.hpp"
|
|
||||||
#include "GCodeWriter.hpp"
|
#include "GCodeWriter.hpp"
|
||||||
#include "PrintConfig.hpp"
|
#include "PrintConfig.hpp"
|
||||||
#include "BoundingBox.hpp"
|
#include "BoundingBox.hpp"
|
||||||
|
#include "CustomGCode.hpp"
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
@@ -319,14 +319,7 @@ protected:
|
|||||||
const double nozzle_diameter = m_config.opt_float("nozzle_diameter", 0);
|
const double nozzle_diameter = m_config.opt_float("nozzle_diameter", 0);
|
||||||
return m_config.get_abs_value("initial_layer_line_width", nozzle_diameter);
|
return m_config.get_abs_value("initial_layer_line_width", nozzle_diameter);
|
||||||
};
|
};
|
||||||
double line_width() const
|
double line_width() const;
|
||||||
{
|
|
||||||
// TODO: FIXME: find out current filament/extruder?
|
|
||||||
const double nozzle_diameter = m_config.opt_float("nozzle_diameter", 0);
|
|
||||||
const double width = m_config.get_abs_value("line_width", nozzle_diameter);
|
|
||||||
if (width <= 0.) return Flow::auto_extrusion_width(frExternalPerimeter, nozzle_diameter);
|
|
||||||
return width;
|
|
||||||
};
|
|
||||||
int wall_count() const { return m_config.option<ConfigOptionInt>("wall_loops")->value; };
|
int wall_count() const { return m_config.option<ConfigOptionInt>("wall_loops")->value; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user