diff options
author | bubnikv <bubnikv@gmail.com> | 2017-03-02 18:42:26 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-03-02 18:42:26 +0300 |
commit | d430767fa795672e0f8988d183ba04a05ed3cc3e (patch) | |
tree | d126e048ccd7f0eaba90d32788963bfec34598ce /xs | |
parent | 83a80a9b7d3990ac8032c589d9c7b617c5c3112d (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.hpp | 5 |
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 |