mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-23 10:04:26 +00:00
Removed the Point::wkt() and Point::dump_perl() methods.
Added to_string() for the basis Eigen vector types.
This commit is contained in:
@@ -196,18 +196,6 @@ bool Polyline::is_straight() const
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string 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();
|
||||
if (p != this->points.end()-1) wkt << ",";
|
||||
}
|
||||
wkt << "))";
|
||||
return wkt.str();
|
||||
}
|
||||
|
||||
BoundingBox get_extents(const Polyline &polyline)
|
||||
{
|
||||
return polyline.bounding_box();
|
||||
|
||||
Reference in New Issue
Block a user