mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 05:56:35 +01:00
Changing the internal representation of Point / Pointf / Point3 / Pointf3 to Eigen Matrix types, first step
This commit is contained in:
1 parent
077680b806
commit
86da661097
60 files changed
+1228
-1206
No files matched your search
@@ -33,7 +33,7 @@ Polyline::leftmost_point() const
|
||||
{
|
||||
Point p = this->points.front();
|
||||
for (Points::const_iterator it = this->points.begin() + 1; it != this->points.end(); ++it) {
|
||||
if (it->x < p.x) p = *it;
|
||||
if (it->x() < p.x()) p = *it;
|
||||
}
|
||||
return p;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ Polyline::wkt() const
|
||||
std::ostringstream wkt;
|
||||
wkt << "LINESTRING((";
|
||||
for (Points::const_iterator p = this->points.begin(); p != this->points.end(); ++p) {
|
||||
wkt << p->x << " " << p->y;
|
||||
wkt << p->x() << " " << p->y();
|
||||
if (p != this->points.end()-1) wkt << ",";
|
||||
}
|
||||
wkt << "))";
|
||||
|
||||
Reference in new issue
Block a user