mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 21:02:02 +08:00
Add comments and fix signature of function for keep_types using c-style array.
This commit is contained in:
parent
ec7d3803d9
commit
b15b5a7d98
@ -214,4 +214,4 @@ SurfaceCollection::group(std::vector<SurfacesPtr> *retval)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
} // namespace Slic3r
|
||||||
|
@ -36,9 +36,13 @@ class SurfaceCollection
|
|||||||
/// group surfaces by common properties
|
/// group surfaces by common properties
|
||||||
void group(std::vector<SurfacesPtr> *retval);
|
void group(std::vector<SurfacesPtr> *retval);
|
||||||
|
|
||||||
|
/// Deletes every surface other than the ones that match the provided type.
|
||||||
void keep_type(const SurfaceType 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(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.
|
/// deletes all surfaces that match the supplied aggregate of types.
|
||||||
void remove_types(const SurfaceType *types, size_t ntypes);
|
void remove_types(const SurfaceType *types, size_t ntypes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user