kartchnb / AutoTowersGenerator

A Cura plugin to automate the creation of 3D printer calibration towers (e.g. temperature towers, retraction towers, etc)
GNU Affero General Public License v3.0
134 stars 11 forks source link

No EXCLUDE_OBJECT_DEFINE on auto towers #112

Open tiimk opened 5 months ago

tiimk commented 5 months ago

Seems like when using the extension to create a tower it doesn't include a "EXCLUDE_OBJECT_DEFINE" as with manually imported items in to cura.

What a normal cura sliced file includes at the start.

;FLAVOR:Marlin
;TIME:1712
;Filament used: 0.987824m
;Layer height: 0.2
;MINX:91.306
;MINY:93.705
;MINZ:0.2
;MAXX:143.696
;MAXY:141.293
;MAXZ:21.05
;Generated with Cura_SteamEngine 5.4.0

; Pre-Processed for Cancel-Object support by preprocess_cancellation v0.2.0
; 1 known objects
EXCLUDE_OBJECT_DEFINE NAME=Probe_Retainer_stl CENTER=126.260,118.256 POLYGON=[[92.106,94.505],[92.106,140.493],[142.896,140.493],[142.896,94.505]]

What a autotowersgenerator looks like

;FLAVOR:Marlin
;TIME:4031
;Filament used: 2.351m
;Layer height: 0.2
;MINX:95.695
;MINY:95.695
;MINZ:0.2
;MAXX:139.305
;MAXY:139.305
;MAXZ:68.2
;AutoTowersGenerator: Post-processed by AutoTowersGenerator version 2.6.2
;AutoTowersGenerator: Flow Tower post-processing script version 3.0
;AutoTowersGenerator: Base height = 1.0 mm
;AutoTowersGenerator: Section height = 8.4 mm
;AutoTowersGenerator: Initial printed layer height = 0.2 mm
;AutoTowersGenerator: Printed layer height = 0.2 mm
;AutoTowersGenerator: Relative extrusion = False
;AutoTowersGenerator: Starting flow rate = 85.0%
;AutoTowersGenerator: Flow rate change = -1.0%
;AutoTowersGenerator: Reference flow rate = 87.5%
;AutoTowersGenerator: Enable LCD messages = False
;Generated with Cura_SteamEngine 5.4.0

Not super important but would be a nice to have. This is mainly an issue for using this project on my klipper install. https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging

For the adaptive mesh and purging it requires the object to be defined. So instead of generating a whole bed mesh it defining the object can allow it to generate a smaller more accurate bed mesh for the print region.

kartchnb commented 3 months ago

Hmmmm... This is something I have never considered. I'm not sure what it would take to determine the envelope of the autotowers, but it shouldn't be too hard. I'll take a look if I get the chance. Thank you!