Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-11-09 18:23:50 +0300
committerAlessandro Ranellucci <aar@cpan.org>2014-11-09 18:24:07 +0300
commitb69caff93cce5ba932a79b613a40ee8ff499c5a2 (patch)
tree565a4800e53da593f62c0f94759732ed9861a421 /xs/src/libslic3r/Surface.hpp
parent948793e570889737eaeab1e626367cf1f3500d7e (diff)
Ported LayerRegion::make_slices() to XS
Diffstat (limited to 'xs/src/libslic3r/Surface.hpp')
-rw-r--r--xs/src/libslic3r/Surface.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Surface.hpp b/xs/src/libslic3r/Surface.hpp
index ce0f02477..c98567cf0 100644
--- a/xs/src/libslic3r/Surface.hpp
+++ b/xs/src/libslic3r/Surface.hpp
@@ -10,12 +10,17 @@ enum SurfaceType { stTop, stBottom, stBottomBridge, stInternal, stInternalSolid,
class Surface
{
public:
- ExPolygon expolygon;
SurfaceType surface_type;
+ ExPolygon expolygon;
double thickness; // in mm
unsigned short thickness_layers; // in layers
double bridge_angle; // in radians, ccw, 0 = East, only 0+ (negative means undefined)
unsigned short extra_perimeters;
+
+ Surface(SurfaceType _surface_type, const ExPolygon &_expolygon)
+ : surface_type(_surface_type), expolygon(_expolygon),
+ thickness(-1), thickness_layers(1), bridge_angle(-1), extra_perimeters(0)
+ {};
double area() const;
bool is_solid() const;
bool is_external() const;