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>2014-11-16 00:41:22 +0300
committerAlessandro Ranellucci <aar@cpan.org>2014-11-16 00:41:22 +0300
commit379cde30e296482e784825e9df586fe654023c45 (patch)
treef6b943dea5f4e147d181e36e9b524acc61dc9356 /xs/src/libslic3r/BoundingBox.cpp
parent36825e0134c2f7ff2db1906cc0ecd8237ad84174 (diff)
Ported Slic3r::BridgeDetector to XS
Diffstat (limited to 'xs/src/libslic3r/BoundingBox.cpp')
-rw-r--r--xs/src/libslic3r/BoundingBox.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/xs/src/libslic3r/BoundingBox.cpp b/xs/src/libslic3r/BoundingBox.cpp
index 6a0c0d318..16c8acadb 100644
--- a/xs/src/libslic3r/BoundingBox.cpp
+++ b/xs/src/libslic3r/BoundingBox.cpp
@@ -95,6 +95,14 @@ template void BoundingBoxBase<Point>::merge(const Point &point);
template void BoundingBoxBase<Pointf>::merge(const Pointf &point);
template <class PointClass> void
+BoundingBoxBase<PointClass>::merge(const std::vector<PointClass> &points)
+{
+ this->merge(BoundingBoxBase(points));
+}
+template void BoundingBoxBase<Point>::merge(const Points &points);
+template void BoundingBoxBase<Pointf>::merge(const Pointfs &points);
+
+template <class PointClass> void
BoundingBoxBase<PointClass>::merge(const BoundingBoxBase<PointClass> &bb)
{
if (this->defined) {
@@ -123,6 +131,13 @@ BoundingBox3Base<PointClass>::merge(const PointClass &point)
template void BoundingBox3Base<Pointf3>::merge(const Pointf3 &point);
template <class PointClass> void
+BoundingBox3Base<PointClass>::merge(const std::vector<PointClass> &points)
+{
+ this->merge(BoundingBox3Base(points));
+}
+template void BoundingBox3Base<Pointf3>::merge(const Pointf3s &points);
+
+template <class PointClass> void
BoundingBox3Base<PointClass>::merge(const BoundingBox3Base<PointClass> &bb)
{
if (this->defined) {