From d430767fa795672e0f8988d183ba04a05ed3cc3e Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 2 Mar 2017 16:42:26 +0100 Subject: Define a surface type count constant to be able to address a vector with a surface type. --- xs/src/libslic3r/Surface.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xs') 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 -- cgit v1.2.3