diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-12-19 16:49:29 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-12-19 16:49:29 +0300 |
commit | 667a121ddbbe9732c3831166792128a901c01315 (patch) | |
tree | 2f34bca9868be439fd4881253205001a689955e9 /xs/src/libslic3r/Point.cpp | |
parent | 9dc0514844cf16f8814b640e93a671f0f4f86cfd (diff) |
Fixed error in porting causing wrong moves with avoid_crossing_perimeters
Diffstat (limited to 'xs/src/libslic3r/Point.cpp')
-rw-r--r-- | xs/src/libslic3r/Point.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Point.cpp b/xs/src/libslic3r/Point.cpp index 35948b7d8..dc9d510c6 100644 --- a/xs/src/libslic3r/Point.cpp +++ b/xs/src/libslic3r/Point.cpp @@ -305,6 +305,14 @@ operator<<(std::ostream &stm, const Pointf &pointf) return stm << pointf.x << "," << pointf.y; } +std::string +Pointf::wkt() const +{ + std::ostringstream ss; + ss << "POINT(" << this->x << " " << this->y << ")"; + return ss.str(); +} + void Pointf::scale(double factor) { |