diff options
author | bubnikv <bubnikv@gmail.com> | 2016-09-26 13:42:44 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-09-26 13:42:44 +0300 |
commit | 4a13efd081f6d2dae03a34f649337bf424147e39 (patch) | |
tree | 4d814a488f4397bf19d0cd23b7ff9fd758653a46 /xs/src/libslic3r/SurfaceCollection.hpp | |
parent | a50603008294e49f14d5610871915f413bec829d (diff) |
Surface / Surface Collection - optimization routines for filtering,
routines for visualization.
Diffstat (limited to 'xs/src/libslic3r/SurfaceCollection.hpp')
-rw-r--r-- | xs/src/libslic3r/SurfaceCollection.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xs/src/libslic3r/SurfaceCollection.hpp b/xs/src/libslic3r/SurfaceCollection.hpp index a4a3a7e5d..07d0b0029 100644 --- a/xs/src/libslic3r/SurfaceCollection.hpp +++ b/xs/src/libslic3r/SurfaceCollection.hpp @@ -21,9 +21,15 @@ class SurfaceCollection void group(std::vector<SurfacesPtr> *retval); template <class T> bool any_internal_contains(const T &item) const; template <class T> bool any_bottom_contains(const T &item) const; - SurfacesPtr filter_by_type(SurfaceType type); + SurfacesPtr filter_by_type(const SurfaceType type); + SurfacesPtr filter_by_types(const SurfaceType *types, int ntypes); + void keep_type(const SurfaceType type); + void keep_types(const SurfaceType *types, int ntypes); + void remove_type(const SurfaceType type); + void remove_types(const SurfaceType *types, int ntypes); void filter_by_type(SurfaceType type, Polygons* polygons); void append(const SurfaceCollection &coll); + void append(const SurfaceType surfaceType, const Slic3r::ExPolygons &expoly); }; } |