diff options
author | bubnikv <bubnikv@gmail.com> | 2016-09-30 17:11:19 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-09-30 17:11:19 +0300 |
commit | d2635ab79944917330dcf50ee7e3d21f7f576e4e (patch) | |
tree | 58c7313ac77c7587a2f65230db08b2857bee3bb9 /xs/src/libslic3r/ExPolygon.cpp | |
parent | 3a81e6bee420196698e3f1409a8a7318dd35965b (diff) |
Finished merging of bridging regions.
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r-- | xs/src/libslic3r/ExPolygon.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygon.cpp b/xs/src/libslic3r/ExPolygon.cpp index 76a48b46a..4861a08fd 100644 --- a/xs/src/libslic3r/ExPolygon.cpp +++ b/xs/src/libslic3r/ExPolygon.cpp @@ -165,8 +165,22 @@ ExPolygon::has_boundary_point(const Point &point) const bool ExPolygon::overlaps(const ExPolygon &other) const { + #if 0 + BoundingBox bbox = get_extents(other); + bbox.merge(get_extents(*this)); + static int iRun = 0; + char path[2048]; + sprintf(path, "out\\ExPolygon_overlaps-%d.svg", iRun ++); + SVG svg(path, bbox); + svg.draw(*this); + svg.draw_outline(*this); + svg.draw_outline(other, "blue"); + #endif Polylines pl_out; intersection((Polylines)other, *this, &pl_out); + #if 0 + svg.draw(pl_out, "red"); + #endif if (! pl_out.empty()) return true; return ! other.contour.points.empty() && this->contains_b(other.contour.points.front()); |