Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-01-18 14:35:05 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-01-18 14:35:05 +0300
commit9f0283f808be5b798112345c29b2bed51abbb7a5 (patch)
treefd0380011da286716e5c826b826d55bcaeb12ada /xs/src/libslic3r/Layer.hpp
parentf11196525b8e61823f9b3eba44c16397ed5e8462 (diff)
Minor issue when dealing with files with empty layers at bottom. #2553
Diffstat (limited to 'xs/src/libslic3r/Layer.hpp')
-rw-r--r--xs/src/libslic3r/Layer.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/xs/src/libslic3r/Layer.hpp b/xs/src/libslic3r/Layer.hpp
index 5f6a6baa0..c21ffa1c8 100644
--- a/xs/src/libslic3r/Layer.hpp
+++ b/xs/src/libslic3r/Layer.hpp
@@ -72,7 +72,8 @@ class Layer {
friend class PrintObject;
public:
- int id();
+ size_t id() const;
+ void set_id(size_t id);
PrintObject* object();
Layer *upper_layer;
@@ -97,11 +98,11 @@ class Layer {
template <class T> bool any_bottom_region_slice_contains(const T &item) const;
protected:
- int _id; // sequential number of layer, 0-based
+ size_t _id; // sequential number of layer, 0-based
PrintObject *_object;
- Layer(int id, PrintObject *object, coordf_t height, coordf_t print_z,
+ Layer(size_t id, PrintObject *object, coordf_t height, coordf_t print_z,
coordf_t slice_z);
virtual ~Layer();
@@ -119,7 +120,7 @@ class SupportLayer : public Layer {
ExtrusionEntityCollection support_interface_fills;
protected:
- SupportLayer(int id, PrintObject *object, coordf_t height, coordf_t print_z,
+ SupportLayer(size_t id, PrintObject *object, coordf_t height, coordf_t print_z,
coordf_t slice_z);
virtual ~SupportLayer();
};