ENH: object_skip: use identify_id for cli when skipping object

Change-Id: Ibbe3262b4817f82b7ac824ba6d4b3efd7f0ed886
This commit is contained in:
lane.wei 2023-06-27 12:16:46 +08:00 committed by Lane.Wei
parent e50513ff75
commit ef06dfc931
5 changed files with 21 additions and 14 deletions

View file

@ -198,7 +198,7 @@ struct PrintInstance
BoundingBoxf3 get_bounding_box();
Polygon get_convex_hull_2d();
// OrcaSlicer
//
//
// instance id
size_t id;
@ -521,7 +521,7 @@ private:
PrintObject* m_shared_object{ nullptr };
// OrcaSlicer
//
//
// object id for klipper firmware only
size_t m_klipper_object_id;
@ -699,7 +699,7 @@ public:
void process(bool use_cache = false) override;
// Exports G-code into a file name based on the path_template, returns the file path of the generated G-code file.
// If preview_data is not null, the preview_data is filled in for the G-code visualization (not used by the command line Slic3r).
std::string export_gcode(const std::string& path_template, GCodeProcessorResult* result, ThumbnailsGeneratorCallback thumbnail_cb = nullptr);
std::string export_gcode(const std::string& path_template, GCodeProcessorResult* result, ThumbnailsGeneratorCallback thumbnail_cb = nullptr, bool using_identify_id = false);
//return 0 means successful
int export_cached_data(const std::string& dir_path, bool with_space=false);
int load_cached_data(const std::string& directory);