Add comments and fix signature of function for keep_types using c-style array.

This commit is contained in:
Joseph Lenox 2018-07-18 22:38:48 -05:00
parent ec7d3803d9
commit b15b5a7d98
2 changed files with 6 additions and 2 deletions

View File

@ -214,4 +214,4 @@ SurfaceCollection::group(std::vector<SurfacesPtr> *retval)
}
} // namespace Slic3r

View File

@ -36,9 +36,13 @@ class SurfaceCollection
/// group surfaces by common properties
void group(std::vector<SurfacesPtr> *retval);
/// Deletes every surface other than the ones that match the provided type.
void keep_type(const SurfaceType type);
/// Deletes every surface other than the ones that match the provided types.
void keep_types(std::initializer_list<SurfaceType> types);
void keep_types(const SurfaceType *types, int ntypes);
/// Deletes every surface other than the ones that match the provided types.
void keep_types(const SurfaceType *types, size_t ntypes);
/// deletes all surfaces that match the supplied aggregate of types.
void remove_types(const SurfaceType *types, size_t ntypes);