mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
Ported Slic3r::Surface to XS
This commit is contained in:
parent
b1ad466189
commit
399bc80899
8 changed files with 207 additions and 63 deletions
30
xs/src/Surface.hpp
Normal file
30
xs/src/Surface.hpp
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue