2013-07-16 19:04:14 +00:00
|
|
|
#include "ExtrusionEntity.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
void
|
|
|
|
ExtrusionPath::reverse()
|
|
|
|
{
|
|
|
|
this->polyline.reverse();
|
|
|
|
}
|
|
|
|
|
2013-08-26 21:42:00 +00:00
|
|
|
const Point*
|
|
|
|
ExtrusionPath::first_point() const
|
|
|
|
{
|
|
|
|
return &(this->polyline.points.front());
|
|
|
|
}
|
|
|
|
|
2013-07-16 19:04:14 +00:00
|
|
|
ExtrusionPath*
|
|
|
|
ExtrusionLoop::split_at_index(int index)
|
|
|
|
{
|
|
|
|
Polyline* poly = this->polygon.split_at_index(index);
|
|
|
|
|
|
|
|
ExtrusionPath* path = new ExtrusionPath();
|
|
|
|
path->polyline = *poly;
|
|
|
|
path->role = this->role;
|
|
|
|
path->height = this->height;
|
|
|
|
path->flow_spacing = this->flow_spacing;
|
|
|
|
|
|
|
|
delete poly;
|
|
|
|
return path;
|
|
|
|
}
|
|
|
|
|
|
|
|
ExtrusionPath*
|
|
|
|
ExtrusionLoop::split_at_first_point()
|
|
|
|
{
|
|
|
|
return this->split_at_index(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|