Ported Slic3r::Surface to XS

This commit is contained in:
Alessandro Ranellucci 2013-07-14 13:05:55 +02:00
parent b1ad466189
commit 399bc80899
8 changed files with 207 additions and 63 deletions

30
xs/src/Surface.hpp Normal file
View file

@ -0,0 +1,30 @@
#ifndef slic3r_Surface_hpp_
#define slic3r_Surface_hpp_
extern "C" {
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "ppport.h"
}
#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;
};
}
#endif