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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-10-20 14:04:23 +0300
committerbubnikv <bubnikv@gmail.com>2016-10-20 14:04:23 +0300
commitf788f50b5a7e1457cadf7a2cde82d93cf085652d (patch)
treee0fc2f70266a94ce33581ff3fbeb8a9214b99e2d /xs/src/libslic3r/Print.hpp
parent53907a9cfee63abf99940bbffe5f1785d151e843 (diff)
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.
Diffstat (limited to 'xs/src/libslic3r/Print.hpp')
-rw-r--r--xs/src/libslic3r/Print.hpp12
1 files changed, 7 insertions, 5 deletions
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<PrintObjectStep> 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<PrintObject*> PrintObjectPtrs;