16 Commits

Author SHA1 Message Date
Martin Šach
919740fb3e Apply fix includes. 2024-07-08 15:37:02 +02:00
Martin Šach
21116995d7 Refactor CMake and improve #includes.
* 1. Remove all global include_directories.
* 2. Move 3d party dependencies from src to budled deps if possible.
* Unify and enforce one way of including headers:
    e.g. #include "libslic3r/GCode.hpp" vs #include "GCode.hpp"
    (always use the "libslic3r/GCode.hpp" option).
* Make all dependencies (also header only) a cmake target.
2024-07-08 15:36:46 +02:00
Martin Šach
d556969b2b Add G92 at the start of every object 2024-03-14 15:42:52 +01:00
Martin Šach
d15e82135e Exclude skirt and brim from 'instance' annotation 2024-03-14 15:42:52 +01:00
Martin Šach
08fa362abd Fix undefined behaviour in maybe change instance 2024-03-14 15:42:52 +01:00
Martin Šach
8119bb2925 Implement cancel object for toolchanges.
Toolchages (wipe tower/no wipe tower) are always kept and if there are
any toolchanges, the objects are split at the begining of each instance,
while the first travel is always part of the "next" instance.
2024-03-14 15:42:52 +01:00
Martin Šach
28d935b0b3 Improve cancel object label placement.
* Make LabelObjects hold more state
* Place cancel object labels at proper positions in the gcode
2024-03-14 15:42:52 +01:00
Martin Šach
fdbe119658 Make LabelObjects hold state.
* This enables setting the object flags anywhere in gcode.
* The flags are then set in such a way that cancel object behaves as expected.
2024-03-14 15:42:52 +01:00
Lukas Matena
778b5263a4 Object info emmision into metadata 2024-03-11 12:51:03 +01:00
Justin Schuh
834f6ef37c Improve filtering on Klipper exclude_objects labels (#11802, PR#11813 by @jschuh) 2023-12-08 13:51:32 +01:00
Lukas Matena
577ba762e3 Fix of #11569: EXCLUDE_OBJECT_DEFINE showing instead of OctoPrint comments 2023-11-02 14:04:01 +01:00
Lukas Matena
04b227b565 Fixed cancel object M486 for Repetier (#11492, SPE-1985) 2023-10-26 09:15:32 +02:00
Lukas Matena
f599ddca8f Label objects: use non-convex projection if it only contains one (Ex)Polygon, remove unused code, tidy includes 2023-09-26 11:24:19 +02:00
Lukas Matena
501cfb64f9 Label objects: integrating the recently merged PR:
- code from @jschuh's functions moved into respective functions in LabelObjects class
- name no longer contains object_id, instance_id is newly 1-based
- replacing banned characters using std::replace_if
2023-09-26 11:24:19 +02:00
Lukas Matena
6016c6b021 Label objects: more refactoring (name composed only once) 2023-09-26 11:24:19 +02:00
Lukas Matena
fe3cf27394 Label objects: refactoring + fix of object/instance indexing when instances are rotated/out-of-bed 2023-09-26 11:24:19 +02:00