2013-07-15 10:14:22 +00:00
|
|
|
#ifndef slic3r_ExtrusionEntity_hpp_
|
|
|
|
#define slic3r_ExtrusionEntity_hpp_
|
|
|
|
|
2013-07-16 19:04:14 +00:00
|
|
|
#include <myinit.h>
|
2013-07-15 10:14:22 +00:00
|
|
|
#include "Polygon.hpp"
|
|
|
|
#include "Polyline.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
enum ExtrusionRole {
|
|
|
|
erPerimeter,
|
|
|
|
erExternalPerimeter,
|
|
|
|
erOverhangPerimeter,
|
|
|
|
erContourInternalPerimeter,
|
|
|
|
erFill,
|
|
|
|
erSolidFill,
|
|
|
|
erTopSolidFill,
|
|
|
|
erBrige,
|
|
|
|
erInternalBridge,
|
|
|
|
erSkirt,
|
|
|
|
erSupportMaterial,
|
|
|
|
erGapFill,
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtrusionEntity
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ExtrusionRole role;
|
|
|
|
double height; // vertical thickness of the extrusion expressed in mm
|
|
|
|
double flow_spacing;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtrusionPath : public ExtrusionEntity
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Polyline polyline;
|
|
|
|
void reverse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtrusionLoop : public ExtrusionEntity
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Polygon polygon;
|
2013-07-15 21:56:01 +00:00
|
|
|
ExtrusionPath* split_at_index(int index);
|
|
|
|
ExtrusionPath* split_at_first_point();
|
2013-07-15 10:14:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|