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:
authorbubnikv <bubnikv@gmail.com>2018-03-14 18:11:57 +0300
committerbubnikv <bubnikv@gmail.com>2018-03-14 18:11:57 +0300
commitb43a21d1be20963c5afb8c6df8f4618c62c8d0e4 (patch)
tree47e70ea0b4879975f64444a5911cc94ae75a5d76 /xs/src/libslic3r/Model.hpp
parent523b297738c6fb66b1f5f96fdc4ad3d51c6adf7a (diff)
Extended Print::validate() to check, whether the objects
are inside the print volume.
Diffstat (limited to 'xs/src/libslic3r/Model.hpp')
-rw-r--r--xs/src/libslic3r/Model.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Model.hpp b/xs/src/libslic3r/Model.hpp
index 7ef1803ac..173bf0c1a 100644
--- a/xs/src/libslic3r/Model.hpp
+++ b/xs/src/libslic3r/Model.hpp
@@ -102,8 +102,12 @@ public:
// Returns the bounding box of the transformed instances.
// This bounding box is approximate and not snug.
- BoundingBoxf3 bounding_box();
+ // This bounding box is being cached.
+ const BoundingBoxf3& bounding_box();
void invalidate_bounding_box() { m_bounding_box_valid = false; }
+ // Returns a snug bounding box of the transformed instances.
+ // This bounding box is not being cached.
+ BoundingBoxf3 tight_bounding_box(bool include_modifiers) const;
// A mesh containing all transformed instances of this object.
TriangleMesh mesh() const;
@@ -278,6 +282,7 @@ public:
// Returs true if this model is contained into the print volume defined inside the given config
bool fits_print_volume(const DynamicPrintConfig* config) const;
+ bool fits_print_volume(const FullPrintConfig &config) const;
void print_info() const { for (const ModelObject *o : this->objects) o->print_info(); }
};