PrusaSlicer-NonPlainar/xs/src/Surface.hpp
2013-11-23 18:15:59 +01:00

35 lines
739 B
C++

#ifndef slic3r_Surface_hpp_
#define slic3r_Surface_hpp_
#include "ExPolygon.hpp"
namespace Slic3r {
enum SurfaceType { stTop, stBottom, stInternal, stInternalSolid, stInternalBridge, stInternalVoid };
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;
double area() const;
bool is_solid() const;
bool is_bridge() const;
#ifdef SLIC3RXS
SV* to_SV_ref();
SV* to_SV_clone_ref() const;
#endif
};
typedef std::vector<Surface> Surfaces;
typedef std::vector<Surface*> SurfacesPtr;
}
#endif