mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
WIP: Refactoring of PrintRegions. It nearly compiles!
This commit is contained in:
parent
68b0d92183
commit
740773db85
8 changed files with 479 additions and 1206 deletions
|
@ -10,6 +10,9 @@
|
|||
namespace Slic3r {
|
||||
|
||||
class Layer;
|
||||
using LayerPtrs = std::vector<Layer*>;
|
||||
class LayerRegion;
|
||||
using LayerRegionPtrs = std::vector<LayerRegion*>;
|
||||
class PrintRegion;
|
||||
class PrintObject;
|
||||
|
||||
|
@ -93,9 +96,6 @@ private:
|
|||
const PrintRegion *m_region;
|
||||
};
|
||||
|
||||
|
||||
typedef std::vector<LayerRegion*> LayerRegionPtrs;
|
||||
|
||||
class Layer
|
||||
{
|
||||
public:
|
||||
|
@ -162,6 +162,8 @@ public:
|
|||
|
||||
protected:
|
||||
friend class PrintObject;
|
||||
friend std::vector<Layer*> new_layers(PrintObject*, const std::vector<coordf_t>&);
|
||||
friend std::string fix_slicing_errors(LayerPtrs&, const std::function<void()>&);
|
||||
|
||||
Layer(size_t id, PrintObject *object, coordf_t height, coordf_t print_z, coordf_t slice_z) :
|
||||
upper_layer(nullptr), lower_layer(nullptr), slicing_errors(false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue