[77] Zauberstab: Inseln als Löcher der Fläche

Geschlossene Formen ganz in der Masche, die ihren Rand nicht berühren, werden Löcher
(neues optionales Polylinien-Feld holes; kernel2d::region_with_islands, nur äusserste Inseln).
Plan: Füllung/Schraffur sparen die Löcher aus (Ring mit Brücken), Loch-Umrisse gezeichnet;
Vorschau, Transformieren, Griff-Verschieben, Geo-Verschiebung nehmen holes mit.
This commit is contained in:
Claude committed 2026-11-04 23:17:51 +00:00
1 parent 8127be8f7e
commit 1ea0c98069
13 files changed
+254 -28

No files matched your search

+6
View File
@@ -276,6 +276,12 @@ pub enum Drawing2DGeom {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
bulge: Option<Vec<f64>>,
/// Inseln/Löcher ([77], Zauberstab): nur bei `closed`, je ein gerader Ring (ohne Bögen).
/// Füllung und Schraffur sparen sie aus, ihre Umrisse werden mitgezeichnet; fehlt das Feld,
/// verhält sich die Polylinie exakt wie bisher.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
holes: Option<Vec<Vec<Vec2>>>,
},
#[serde(rename = "rect")]
Rect { min: Vec2, max: Vec2 },