Fix support interface semantics, gap handling, behavior; fix bottom interface generation for organic trees; fix non organic tree interfaces (#11812)

* Fix support interface semantics and gap handling

Fix zero-gap interface detection and gap initialization for supports and raft.
Ensures correct top/bottom contact semantics and avoids relying on default zero gaps.

* Additional fixes and robustness improvements

Fix incorrect coupling between top and bottom support interface spacing and density, ensuring bottom interfaces use their own parameters for smoothing and toolpath generation.
Restore correct bottom interface generation for organic (tree) supports when a non-zero bottom Z gap is used, and preserve contacts even when base polygons are empty.
Improve robustness of organic support slicing by fixing layer index drift and guarding against degenerate polygon boolean operations.

* Typo and semantics fix

differnt_support_interface_filament -> different_support_interface_filament

soluble -> zero_top_z_gap

* Fix non organic tree bottom support interface generation

Slim tree bottom interface layer numbers were capped by the object's layer number beneath it.
Fixed by refactoring the generation algorithm.

* Fix non organic tree interlaced support generation

Deterministic local interlaced support layers generation for non-organic tree support

* Enable support interface multimaterial for non organic tree

Enables mixed-material support interface behavior for non organic tree support type.

* Fix tree support interface layer counts and contact handling

- Correct non‑organic tree top interface layer budgeting so gaps don’t consume a layer (N stays N).
- Remove the extra roof interface pass that was duplicating the 2nd layer.
- Organic tree: use only the lowest contact footprint and avoid extra bottom‑contact extrusion so interface count matches the user setting.

* Bugfixes (a lot)

Many, many bugs fixed, majority edge-case but still not  playing by the rule.
Some of them:
- on multilevel base, on very small level variations the support was capped to the topmost level height
- non-organic tree had gaps for supports in a multilevel base situiation
- independent support layer height had issues with support interfaces (base support beneath bottom interface, top contact layer sometimes missing)
- organic tree had issues with small variation multi-level base
- organic tree support with zero top Z distance could overlap support-material and interface-material paths when separate materials were used
- many, many others (I lost track of them)
This commit is contained in:
Kiss Lorand
2026-05-10 10:12:56 +03:00
committed by GitHub
parent 5108b721a9
commit 4e507fffb2
33 changed files with 1098 additions and 447 deletions

View File

@@ -15131,8 +15131,11 @@ msgstr "打印机变种"
msgid "Raft contact Z distance"
msgstr "筏层Z间距"
msgid "Z gap between object and raft. Ignored for soluble interface."
msgstr "模型和筏层之间的Z间隙"
msgid ""
"Z gap between raft and object. "
"If Support Top Z Distance is 0, this value is ignored and "
"the object is printed in direct contact with the raft (no gap)."
msgstr "筏层与模型之间的Z间隙。如果支撑顶部Z距离为0则忽略该值模型与筏层直接接触打印无间隙。"
msgid "Raft expansion"
msgstr "筏层扩展"
@@ -15991,14 +15994,19 @@ msgstr "将几乎不需要支撑的微小悬垂忽略掉。"
msgid "Top Z distance"
msgstr "顶部Z距离"
msgid "The Z gap between the top support interface and object."
msgstr "支撑顶部模型之间的z间隙"
msgid "Z gap between the support's top and object."
msgstr "支撑顶部模型之间的Z间隙"
msgid "Bottom Z distance"
msgstr "底部Z距离"
msgid "The Z gap between the bottom support interface and object."
msgstr "支撑生成于模型表面时支撑面底部和模型之间的z间隙"
msgid ""
"Z gap between the object and the support bottom. "
"If Support Top Z Distance is 0 and the bottom has interface layers, this value "
"is ignored and the support is printed in direct contact with the object (no gap)."
msgstr ""
"模型与支撑底部之间的Z间隙。"
"如果支撑顶部Z距离为0且底部有界面层则忽略该值支撑与模型直接接触打印无间隙。"
msgid "Support/raft base"
msgstr "支撑/筏层主体"