mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Changing the internal representation of Point / Pointf / Point3 / Pointf3 to Eigen Matrix types, first step
This commit is contained in:
parent
077680b806
commit
86da661097
60 changed files with 1228 additions and 1206 deletions
|
@ -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 << "))";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue