mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-26 12:21:05 -07:00
Fix overflow in distance_to(Line*). It was affecting Douglas-Peucker causing massive loss of geometry. Includes regression test and a couple wkt() implementations
This commit is contained in:
parent
3a3e53b59b
commit
0d7f0705f0
6 changed files with 35 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ class Line
|
|||
Point b;
|
||||
Line() {};
|
||||
explicit Line(Point _a, Point _b): a(_a), b(_b) {};
|
||||
std::string wkt() const;
|
||||
operator Polyline() const;
|
||||
void scale(double factor);
|
||||
void translate(double x, double y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue