2013-07-14 11:05:55 +00:00
|
|
|
#ifndef slic3r_Surface_hpp_
|
|
|
|
#define slic3r_Surface_hpp_
|
|
|
|
|
|
|
|
#include "ExPolygon.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2014-03-25 00:11:28 +00:00
|
|
|
enum SurfaceType { stTop, stBottom, stBottomBridge, stInternal, stInternalSolid, stInternalBridge, stInternalVoid };
|
2013-07-14 11:05:55 +00:00
|
|
|
|
|
|
|
class Surface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ExPolygon expolygon;
|
|
|
|
SurfaceType surface_type;
|
|
|
|
double thickness; // in mm
|
|
|
|
unsigned short thickness_layers; // in layers
|
|
|
|
double bridge_angle;
|
|
|
|
unsigned short extra_perimeters;
|
2013-09-06 16:36:38 +00:00
|
|
|
double area() const;
|
2013-11-22 23:07:04 +00:00
|
|
|
bool is_solid() const;
|
2014-02-10 12:19:44 +00:00
|
|
|
bool is_external() const;
|
2014-03-25 00:11:28 +00:00
|
|
|
bool is_bottom() const;
|
2013-11-22 23:07:04 +00:00
|
|
|
bool is_bridge() const;
|
2013-09-13 12:48:40 +00:00
|
|
|
|
|
|
|
#ifdef SLIC3RXS
|
2014-01-16 18:02:50 +00:00
|
|
|
void from_SV_check(SV* surface_sv);
|
2013-09-13 12:48:40 +00:00
|
|
|
SV* to_SV_ref();
|
2013-11-23 17:15:59 +00:00
|
|
|
SV* to_SV_clone_ref() const;
|
2013-09-13 12:48:40 +00:00
|
|
|
#endif
|
2013-07-14 11:05:55 +00:00
|
|
|
};
|
|
|
|
|
2013-07-18 17:09:07 +00:00
|
|
|
typedef std::vector<Surface> Surfaces;
|
2013-11-23 17:15:59 +00:00
|
|
|
typedef std::vector<Surface*> SurfacesPtr;
|
2013-07-18 17:09:07 +00:00
|
|
|
|
2013-07-14 11:05:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|