From f788f50b5a7e1457cadf7a2cde82d93cf085652d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 20 Oct 2016 13:04:23 +0200 Subject: Disabled asserts in the release build (-DNDEBUG). Added a safe variant of offset(const Slic3r::ExPolygon...), which offsets each loop separately. New functions "remove_sticks" to remove zero area parts of polygons. New functions "remove_small" and "remove_degenerate" for polygon clean up. Extended the C++ supports, those are not finalized yet though. --- xs/src/libslic3r/Print.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'xs/src/libslic3r/Print.hpp') diff --git a/xs/src/libslic3r/Print.hpp b/xs/src/libslic3r/Print.hpp index 1ad20afa5..67d75d23e 100644 --- a/xs/src/libslic3r/Print.hpp +++ b/xs/src/libslic3r/Print.hpp @@ -103,10 +103,12 @@ public: // TODO: Fill* fill_maker => (is => 'lazy'); PrintState state; - Print* print(); - ModelObject* model_object(); - - Points copies() const; + Print* print() { return this->_print; } + const Print* print() const { return this->_print; } + ModelObject* model_object() { return this->_model_object; } + const ModelObject* model_object() const { return this->_model_object; } + + Points copies() const { return this->_copies; } bool add_copy(const Pointf &point); bool delete_last_copy(); bool delete_all_copies(); @@ -151,7 +153,7 @@ private: // TODO: call model_object->get_bounding_box() instead of accepting // parameter PrintObject(Print* print, ModelObject* model_object, const BoundingBoxf3 &modobj_bbox); - ~PrintObject(); + ~PrintObject() {} }; typedef std::vector PrintObjectPtrs; -- cgit v1.2.3