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

@@ -15234,10 +15234,14 @@ msgstr "プリンターバリエーション"
msgid "Raft contact Z distance"
msgstr "ラフト接触面Z間隔"
msgid "Z gap between object and raft. Ignored for soluble interface."
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隙間。"
"サポート上面Z距離が0の場合、この値は無視され、"
"オブジェクトはラフトに直接接触して印刷されます(隙間なし)。"
msgid "Raft expansion"
msgstr "ラフト拡張"
@@ -16046,14 +16050,20 @@ 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 ""