Skip to content

Releases: ghzserg/zmod_preprocess

0.0.4

Choose a tag to compare

@github-actions github-actions released this 14 Aug 13:21
e6f145f
Прореживание контуров EXCLUDE_OBJECT_DEFINE (#8)

Слайсер пишет контур первого слоя целиком для каждой детали. На плите из
полусотни мелких это больше десяти тысяч точек, и их разбор подвешивает
Klipper: плата отдаёт Timer too close, печать обрывается на первом слое.

Дуглас-Пекер с допуском в миллиметрах, по умолчанию 0.2 — 54 детали дают
1134 точки вместо 13500, силуэт в вебморде остаётся узнаваемым.
Ключ -simplify-objects=0 заменяет контур габаритным прямоугольником,
-no-simplify-objects отключает прореживание.

Крайние по осям точки неудаляемы, поэтому габарит точен при любом допуске —
на него опираются KAMP и LINE_PURGE. Отмена детали идёт по имени и центру
и не затрагивается.

Разбор — стандартными средствами. Значение POLYGON= это обычный JSON:
raw_decode в питоне, json.Decoder с InputOffset в Go, оба заодно сообщают,
где значение кончилось. Аргументы — flag и argparse. Что не разобралось,
оставляем нетронутым.

Go и Python дают одинаковый вывод: сверено на плите из 54 деталей при
допусках 0, 0.1, 0.2, 0.5, 2 и на пятнадцати крайних случаях разбора, коды
возврата на отказах тоже совпадают. Расходятся в одном: ключ, поставленный
ПОСЛЕ пути, flag пропускает, а argparse принимает. Слайсер такую команду не
собирает — он дописывает путь последним.

В питоне разбиение Дугласа-Пекера идёт явным стеком вместо рекурсии: контур
держит тысячи точек.

Co-authored-by: pbannykh <baza182@proton.me>

0.0.3

Choose a tag to compare

@github-actions github-actions released this 20 Apr 04:34
38b2d3d
Safety mode added for print by object (#4)

* Forced UTF-8 reading of files

Would cause script to fail if certain characters where used in gcode.

* Update machine start G-code and change filament logic

Safety check to make sure you don't use nopoop while doing a print by object plate.

* Update machine start G-code and change filament G-code

Safety check to make sure you don't use nopoop while doing a print by object plate.

* Update machine_start_gcode for printer settings

Safety check to make sure you don't use nopoop while doing a print by object plate.

* Update machine start G-code for printer settings

Safety check to make sure you don't use nopoop while doing a print by object plate.

* Update machine_start_gcode in AD5X Nopoop configuration

* Update machine_start_gcode for printer settings

* Update OrcaSlicer profiles readme with new modes

Added support for USE_TRASH_ON_PRINT=1 if using print by object and clarified settings.

* Обновить G-коды и инструкции по режимам сброса

Обновлены G-коды для поддержки новых режимов сброса пластика и добавлены инструкции по переключению между ними.

* Update machine start G-code for printer settings

* Refactor machine_start_gcode for clarity and logic

* Refactor machine_start_gcode for clarity and logic

* Refactor machine_start_gcode for clarity

* Refactor machine_start_gcode for clarity

* Updated with correct values for print by object safety

I removed the emoji and corrected the settings to cause slicer controled poop mode to be used if the plate is set to "by object"

* Working print by object detection

Detection updated and corrected to include machine change filament gcode validation to skip custom filament slicer gcode when the plate is print by object.

* Re-added orca workaround for OrcaSlicer bug #12837

Re added workaround bug found by ninjamidia.

* Update filament change and start gcode for Nopoop mode

Updated to properly detect print mode correctly.
Updated notes to mention that 'slicer-controled' will be used if the print is print "by object".

* Update printer notes and add cooling tube length

* Update filament change G-code for Nopoop mode

* Update filament change and machine start GCode

* Update filament change gcode for Nopoop mode

* Update OrcaSlicer Profiles Readme for trash modes

Removed reference to USE_TRASH_ON_PRINT=1 (poop mode) and clarified the use of slicer-controlled poop mode.

* Обновить инструкции по режимам сброса отходов

Упрощены г-коды для режимов сброса отходов и уточнены инструкции по переключению в режим управления слайсером.

* Update machine start GCode and printer notes

* Update machine start gcode and printer notes

* Update machine_start_gcode and printer_notes

0.0.2

Choose a tag to compare

@github-actions github-actions released this 16 Feb 10:32
Fix

0.0.1

Choose a tag to compare

@github-actions github-actions released this 11 Feb 08:24
first commit