[331] Schraffuren: Erdreich als SIA-Flechtmuster, Kies als Kiesel
Erdreich nach Vorlage Maintainer: quadratische Felder mit je vier Strichen, von Feld zu Feld um 90° gewechselt, 45° gedreht. Kies: Ellipsen verschiedener Grösse und Drehung, dazwischen Punkte. Im Schnitt über 1:50 papierkonstant vergrössert.
This commit is contained in:
4 files changed
+41
-21
No files matched your search
@@ -450,6 +450,9 @@ pub fn section_primitives_mv(out: &Output, mono: bool, hidden_lines: bool, vis:
|
||||
Some(_) => rules.terrain_hatch.clone().unwrap_or_else(|| hatch.clone()),
|
||||
};
|
||||
let hatch = if mono { HatchRender { color: SECTION_INK.into(), ..hatch } } else { hatch };
|
||||
// [331] Erdreich-Sinnbild auf dem Papier gleich dicht: bis 1:50 wie definiert, darüber im Verhältnis weiter
|
||||
// (sonst bei 1:100 doppelt so dicht und grau). Nur die Muster Erdreich/Kies; eigene Regel-Schraffuren bleiben.
|
||||
let hatch = if matches!(hatch.pattern, HatchPattern::Earth | HatchPattern::Gravel) && scale > 50.0 { HatchRender { scale: hatch.scale * scale / 50.0, ..hatch } } else { hatch };
|
||||
let fill = tov.and_then(|(_, l)| l.fill_color.as_deref()).unwrap_or("none");
|
||||
let mut q = polygon(ring.iter().map(|q| v2(q[0], q[1])).collect(), fill, "none", 0.0, hatch);
|
||||
if let Primitive::Polygon { context_object_id, .. } = &mut q {
|
||||
|
||||
@@ -133,7 +133,7 @@ pub fn hatches() -> Vec<Value> {
|
||||
lines("std-h-glas", "SIA Glas", "diagonal", 0.008, 90.0, true, 0.1, ""),
|
||||
// Fig. 34 Sperrschichten (Wind, Dampf, Wasser): kräftige Strichlinie schwarz/weiss.
|
||||
layer("std-h-sperrschicht", "SIA Sperrschicht", "barrier", 1.0, 0.5),
|
||||
// Erdreich, Kies: in SIA 400 ohne Sinnbild (B.3.3 nur Terrainlinien) — Konvention.
|
||||
// Erdreich: Flechtmuster nach SIA 400 (Vorlage Maintainer 25.11.); Kies: Kiesel ([331]).
|
||||
lines("std-h-erdreich", "SIA Erdreich", "earth", 0.0889, 45.0, false, 0.1, ""),
|
||||
lines("std-h-kies", "SIA Kies / Sauberkeitsschicht", "gravel", 0.0889, 0.0, false, 0.1, ""),
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user