diff options
author | bubnikv <bubnikv@gmail.com> | 2016-10-16 17:30:56 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-10-16 17:30:56 +0300 |
commit | 7d7f093120df5fcdfd1f9b21fc6b0622636a7ff1 (patch) | |
tree | 629a535ccdb2e4de749de28ea8a34c5a6b27d5c9 /xs/src/libslic3r/Print.hpp | |
parent | 8f40d9b34ea75c5e772dfb4aab18554c49536f8c (diff) |
C++ supports sketched, but not finalized yet. Slic3r is still using
the old Perl supports, but this time with the C++ fillers.
Diffstat (limited to 'xs/src/libslic3r/Print.hpp')
-rw-r--r-- | xs/src/libslic3r/Print.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Print.hpp b/xs/src/libslic3r/Print.hpp index 755b39e9d..1ad20afa5 100644 --- a/xs/src/libslic3r/Print.hpp +++ b/xs/src/libslic3r/Print.hpp @@ -120,7 +120,9 @@ public: size_t total_layer_count() const; size_t layer_count() const; void clear_layers(); - Layer* get_layer(int idx); + Layer* get_layer(int idx) { return this->layers.at(idx); } + const Layer* get_layer(int idx) const { return this->layers.at(idx); } + // print_z: top of the layer; slice_z: center of the layer. Layer* add_layer(int id, coordf_t height, coordf_t print_z, coordf_t slice_z); void delete_layer(int idx); |