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
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-02 18:42:26 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-02 18:42:26 +0300
commitd430767fa795672e0f8988d183ba04a05ed3cc3e (patch)
treed126e048ccd7f0eaba90d32788963bfec34598ce /xs
parent83a80a9b7d3990ac8032c589d9c7b617c5c3112d (diff)
Define a surface type count constant to be able to address a vector
with a surface type.
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Surface.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Surface.hpp b/xs/src/libslic3r/Surface.hpp
index 147901334..889c3cfe4 100644
--- a/xs/src/libslic3r/Surface.hpp
+++ b/xs/src/libslic3r/Surface.hpp
@@ -23,7 +23,10 @@ enum SurfaceType {
// or if sparse infill layers get combined into a single layer.
stInternalVoid,
// Inner/outer perimeters.
- stPerimeter
+ stPerimeter,
+ // Last surface type, if the SurfaceType is used as an index into a vector.
+ stLast,
+ stCount = stLast + 1
};
class Surface