diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2016-05-20 07:24:05 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2016-05-20 18:03:57 +0300 |
commit | 9e8022f6f62b6f4c07b5846a765128b3609e53ef (patch) | |
tree | 610458a3e47b679229a64c069cad55e72dfe7a1d /xs/src/libslic3r/Point.cpp | |
parent | b06861636623b7b7d7ab2ce32d37163d5d33d7c7 (diff) |
More refactoring to medial axis and gap fill, more robust
Diffstat (limited to 'xs/src/libslic3r/Point.cpp')
-rw-r--r-- | xs/src/libslic3r/Point.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Point.cpp b/xs/src/libslic3r/Point.cpp index dc9d510c6..29ce0b153 100644 --- a/xs/src/libslic3r/Point.cpp +++ b/xs/src/libslic3r/Point.cpp @@ -26,6 +26,14 @@ Point::wkt() const return ss.str(); } +std::string +Point::dump_perl() const +{ + std::ostringstream ss; + ss << "[" << this->x << "," << this->y << "]"; + return ss.str(); +} + void Point::scale(double factor) { @@ -313,6 +321,14 @@ Pointf::wkt() const return ss.str(); } +std::string +Pointf::dump_perl() const +{ + std::ostringstream ss; + ss << "[" << this->x << "," << this->y << "]"; + return ss.str(); +} + void Pointf::scale(double factor) { |