[171] Plan-Review Reste: Dämmschlange mit Sehnenfehler statt 5°-Schritten (DG 1:50 14 → 2.6 MB), Haarstrich 0.12 mm gegen Schichtfugen im Schnitt, Stempel-Kürzung nach Wörtern, Reststrich am Rundfenster
This commit is contained in:
19 files changed
+188
-87
No files matched your search
@@ -127,11 +127,14 @@ Wer zu einer ID mehr wissen will (Entscheide, Tests, Bilder), sucht dort nach `*
|
||||
verlängert (keine Eckstreifen mit Fuge/Schatten, einfaches Musterhaus); Höhenkoten im Schnitt/in der Ansicht neben
|
||||
dem Gebauten (`levelMarkerPrimitives` mit Primitiven). Offen: Raumstempel „Wohnen“ (einfaches Musterhaus) liegt auf
|
||||
Zwischenwand W9 und Schnittlinie A (Anker/Raumumriss in den Daten); Revisionswolken-Text und „▽-2.71“ auf der
|
||||
Bemassung Süd (Daten); Höhenlinien-Beschriftung („-2.7“) knapp an Masszahlen; kleiner Strich rechts am Rundfenster
|
||||
(Ansicht West); Ansicht Ost: Schatten-Keile neben dem Erker mit Lücken je Geschoss, Strichreste am Erker;
|
||||
1:500: Kürzung „Wohnen/Essen.“ unterschlägt „Küche“; Holzwand-Ecke DG 1:50: Dämmschlaufen überlappen in der
|
||||
Ecke, Dämm-Polylinien mit ~60 000 Punkten (DG 1:50 SVG 14 MB); Raumstempel ohne Maske über Schnittlinie (einfaches
|
||||
Musterhaus); 1:100-Schnitt: Schichtfugen als graue Linien in der schwarzen Fläche. Nicht in der Tauri-App/auf dem Mac
|
||||
Bemassung Süd (Daten); Höhenlinien-Beschriftung („-2.7“) knapp an Masszahlen; Raumstempel ohne Maske über
|
||||
Schnittlinie (einfaches Musterhaus). Nachtrag 10.11. (Reste): Dämm-Polylinien mit Sehnenfehler ≤ 0.5 mm Modell
|
||||
(≙ 0.05 mm Papier ab 1:10) statt festen 5° (DG 1:50 komplex 14 MB → 2.6 MB); Haarstrich gegen Fugen
|
||||
`SEAM_MM` 0.05 → 0.12 (graue Schichtfugen in der schwarzen Schnittfläche 1:100 bei Zoom ≥ 12 px/mm); Stempel-Kürzung
|
||||
nach Wörtern („Wo./Ess./Küc.“ statt „Wohnen/Essen.“); Reststrich rechts am Rundfenster (Ansicht West) — Lochkanten im
|
||||
Band um den Rahmen entfallen (`drop_hole_edges`). Weiter offen: Holzwand-Ecke DG 1:50: die Dämmschlaufen beider
|
||||
Wände treffen sich an der Gehrung versetzt (Schenkel-Knicke, keine Spiegelung; Phase/Gehrung `anchor_band_pattern`);
|
||||
Ansicht Ost: Schatten-Keile neben dem Erker mit Lücken je Geschoss und Strichreste am Erker. Nicht in der Tauri-App/auf dem Mac
|
||||
angesehen. · M
|
||||
- ◐ **[142]** Schatten in zwei Richtungen. Schatten nur im Geschoss nächst ±0.00; Decken/Dächer werfen keinen eigenen
|
||||
Schatten (Auskragungen, Balkone); Wandöffnungen lassen kein Licht durch; Dach-/Kronenschatten als konvexe Hülle
|
||||
|
||||
@@ -882,12 +882,46 @@ fn ring_bounds(ring: &[[f64; 2]]) -> [f64; 4] {
|
||||
ring.iter().fold([f64::INFINITY, f64::INFINITY, f64::NEG_INFINITY, f64::NEG_INFINITY], |b, q| [b[0].min(q[0]), b[1].min(q[1]), b[2].max(q[0]), b[3].max(q[1])])
|
||||
}
|
||||
|
||||
/// Namenszeilen auf `n` Zeichen kürzen (n − 1 Zeichen und Punkt), Leerzeichen am Schnitt weg.
|
||||
/// Namenszeilen auf höchstens `n` Zeichen kürzen. Einzelne Wörter: `n − 1` Zeichen und Punkt, Leerzeichen am
|
||||
/// Schnitt weg. Zeilen aus mehreren Wörtern (Trenner Leerzeichen, `/`, `-`) kürzen die Wörter der Reihe nach
|
||||
/// (jeweils das längste um ein Zeichen, mit Punkt, nicht unter 3 Zeichen; kurze Wörter von höchstens 4 Zeichen
|
||||
/// bleiben) — „Wohnen/Essen/Küche" wird „Wohn./Ess./Küc." statt „Wohnen/Essen." ([171]: kein Wort fällt weg).
|
||||
fn abbreviate(text: &str, n: usize) -> String {
|
||||
text.split('\n')
|
||||
.map(|l| if l.chars().count() <= n { l.to_string() } else { format!("{}.", l.chars().take(n.saturating_sub(1).max(1)).collect::<String>().trim_end()) })
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
text.split('\n').map(|l| abbreviate_line(l, n)).collect::<Vec<_>>().join("\n")
|
||||
}
|
||||
|
||||
fn abbreviate_line(l: &str, n: usize) -> String {
|
||||
if l.chars().count() <= n {
|
||||
return l.to_string();
|
||||
}
|
||||
let chop = |l: &str| format!("{}.", l.chars().take(n.saturating_sub(1).max(1)).collect::<String>().trim_end());
|
||||
// Wörter und Trenner abwechselnd: (Text, ist_Trenner).
|
||||
let mut parts: Vec<(String, bool)> = Vec::new();
|
||||
for ch in l.chars() {
|
||||
let sep = matches!(ch, ' ' | '/' | '-');
|
||||
match parts.last_mut() {
|
||||
Some((t, s)) if *s == sep && !sep => t.push(ch),
|
||||
_ => parts.push((ch.to_string(), sep)),
|
||||
}
|
||||
}
|
||||
let words: Vec<usize> = (0..parts.len()).filter(|&i| !parts[i].1).collect();
|
||||
if words.len() < 2 {
|
||||
return chop(l);
|
||||
}
|
||||
// Behaltene Zeichen je Wort; ein gekürztes Wort zeigt `keep` Zeichen und einen Punkt.
|
||||
let full: Vec<usize> = parts.iter().map(|(t, _)| t.chars().count()).collect();
|
||||
let mut keep = full.clone();
|
||||
let shown = |i: usize, keep: &[usize]| if keep[i] == full[i] { full[i] } else { keep[i] + 1 };
|
||||
let total = |keep: &[usize]| (0..parts.len()).map(|i| if parts[i].1 { full[i] } else { shown(i, keep) }).sum::<usize>();
|
||||
while total(&keep) > n {
|
||||
let Some(&i) = words.iter().filter(|&&i| full[i] > 4 && shown(i, &keep) > 3).max_by_key(|&&i| (shown(i, &keep), keep[i] == full[i], std::cmp::Reverse(i))) else { return chop(l) };
|
||||
keep[i] = if keep[i] == full[i] { full[i] - 2 } else { keep[i] - 1 };
|
||||
}
|
||||
parts
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(i, (t, sep))| if *sep || keep[i] == full[i] { t.clone() } else { format!("{}.", t.chars().take(keep[i]).collect::<String>()) })
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// [140] Hindernisse für Raumstempel aus den schon erzeugten Domänen: Treppen (alle Striche), Türschwenk-Bögen,
|
||||
@@ -1687,6 +1721,13 @@ mod tests {
|
||||
let (e, pt, _, at) = fit_room_stamp(&name, extra(), ROOM_STAMP_PT, 100.0, &narrow(0.0));
|
||||
assert_eq!((e.len(), pt, at), (2, ROOM_STAMP_PT, Some(pole)), "nirgends frei: ganzer Stempel mit Überdeckung");
|
||||
assert_eq!(abbreviate("Bad", 5), "Bad");
|
||||
// [171] Mehrere Wörter: alle bleiben sichtbar, die Wörter werden gekürzt (nicht der Schluss abgeschnitten).
|
||||
let a = abbreviate("Wohnen/Essen/Küche", 13);
|
||||
let w: Vec<&str> = a.split('/').collect();
|
||||
assert!(a.chars().count() <= 13 && w.len() == 3 && w[0].starts_with("Wo") && w[1].starts_with("Es") && w[2].starts_with("Kü"), "{a}");
|
||||
assert!(abbreviate("Wohnen/Essen/Küche", 16).starts_with("Wohn."), "genug Platz: längere Wörter");
|
||||
assert!(abbreviate("E.03 Wohnen/Essen/Küche", 17).starts_with("E.03 "));
|
||||
assert_eq!(abbreviate("Abstellraum Keller", 40), "Abstellraum Keller");
|
||||
}
|
||||
|
||||
/// [140] L-förmiger Raum ohne eigenen Anker: Stempel im Raum (Pol der Unzugänglichkeit), nicht am
|
||||
|
||||
@@ -140,6 +140,28 @@ fn face_contains_bbox(f: &Face, c: Pt) -> bool {
|
||||
c[0] >= lo[0] - NEAR && c[0] <= hi[0] + NEAR && c[1] >= lo[1] - NEAR && c[1] <= hi[1] + NEAR
|
||||
}
|
||||
|
||||
/// [171] Kanten des Rechteck-Lochs einer Formöffnung (`b` = Umriss `[x0, y0, x1, y1]` des Rahmens) entfernen: die
|
||||
/// Seiten auf dem Rand des Umrisses (Quadrat um ein Rundfenster) und Reststücke im Band um den Umriss (das Loch
|
||||
/// ist um den Einzug der Dämmung ([168]) grösser als die Öffnung; die Füllstücke decken nur bis an den Umriss —
|
||||
/// dort blieb ein kurzer Strich rechts am Rundfenster stehen).
|
||||
fn drop_hole_edges(edges: &mut Vec<silhouette::EdgeSeg>, b: [f64; 4]) {
|
||||
const TOL: f64 = 1e-3;
|
||||
const REVEAL: f64 = 0.12;
|
||||
let near = |a: f64, b: f64| (a - b).abs() < TOL;
|
||||
let inside = |q: Pt| q[0] > b[0] - REVEAL && q[0] < b[2] + REVEAL && q[1] > b[1] - REVEAL && q[1] < b[3] + REVEAL;
|
||||
let rim_u = |x: f64| x <= b[0] + TOL || x >= b[2] - TOL;
|
||||
let rim_v = |y: f64| y <= b[1] + TOL || y >= b[3] - TOL;
|
||||
edges.retain(|e| {
|
||||
let side = (near(e.a[0], e.b[0]) && rim_u(e.a[0])) || (near(e.a[1], e.b[1]) && rim_v(e.a[1]));
|
||||
// Ganz im Band ausserhalb einer Seite des Umrisses.
|
||||
let band = (e.a[0] >= b[2] - TOL && e.b[0] >= b[2] - TOL)
|
||||
|| (e.a[0] <= b[0] + TOL && e.b[0] <= b[0] + TOL)
|
||||
|| (e.a[1] >= b[3] - TOL && e.b[1] >= b[3] - TOL)
|
||||
|| (e.a[1] <= b[1] + TOL && e.b[1] <= b[1] + TOL);
|
||||
!((side || band) && inside(e.a) && inside(e.b))
|
||||
});
|
||||
}
|
||||
|
||||
fn outline_line(a: Pt, b: Pt) -> Primitive {
|
||||
line(v2(a[0], a[1]), v2(b[0], b[1]), "elevation-outline", EDGE_MM, EDGE_INK)
|
||||
}
|
||||
@@ -353,17 +375,7 @@ pub fn elevation_primitives_with(p: &Project, level: &LevelSpec, shadows: bool,
|
||||
// entfallen, den Umriss zeichnet der Rahmen (wie `section::shaped_projection` im Schnitt).
|
||||
for op in openings.iter().filter(|op| op.shape.is_some()) {
|
||||
let b = op.pts.iter().fold([f64::INFINITY, f64::INFINITY, f64::NEG_INFINITY, f64::NEG_INFINITY], |b, q| [b[0].min(q[0]), b[1].min(q[1]), b[2].max(q[0]), b[3].max(q[1])]);
|
||||
// Das Loch kann um den Einzug der Dämmung über den Rahmen ([168]) grösser sein als die Öffnung.
|
||||
const TOL: f64 = 1e-3;
|
||||
const REVEAL: f64 = 0.12;
|
||||
let near = |a: f64, b: f64| (a - b).abs() < TOL;
|
||||
let inside = |q: Pt| q[0] > b[0] - REVEAL && q[0] < b[2] + REVEAL && q[1] > b[1] - REVEAL && q[1] < b[3] + REVEAL;
|
||||
let rim_u = |x: f64| x <= b[0] + TOL || x >= b[2] - TOL;
|
||||
let rim_v = |y: f64| y <= b[1] + TOL || y >= b[3] - TOL;
|
||||
edges.retain(|e| {
|
||||
let side = (near(e.a[0], e.b[0]) && rim_u(e.a[0])) || (near(e.a[1], e.b[1]) && rim_v(e.a[1]));
|
||||
!(side && inside(e.a) && inside(e.b))
|
||||
});
|
||||
drop_hole_edges(&mut edges, b);
|
||||
}
|
||||
for (a, b, depth, paint, k) in pattern_lines {
|
||||
pending.push(Pending::Line { a, b, depth, style: Some(k), paint: Some(paint) });
|
||||
|
||||
@@ -435,6 +435,38 @@ fn rundfenster_ohne_rechteck_in_der_ansicht() {
|
||||
})
|
||||
.collect();
|
||||
assert!(square.is_empty(), "Rechteck um das Rundfenster: {square:?}");
|
||||
// [171] Auch kurze Reststücke der Lochkanten (Strich neben dem Rahmen): im Band von 0.12 m um das Fenster
|
||||
// liegt keine Umrisslinie, ausser dem Rahmen selbst.
|
||||
let band = 0.12;
|
||||
let stubs: Vec<_> = prims
|
||||
.iter()
|
||||
.filter_map(|pr| if let Primitive::Line { a, b, cls, .. } = pr { (cls == "elevation-outline").then_some((a, b)) } else { None })
|
||||
.filter(|(a, b)| {
|
||||
let inside = |q: &Vec2| q.x > bb[0] - band && q.x < bb[2] + band && q.y > bb[1] - band && q.y < bb[3] + band;
|
||||
inside(a) && inside(b)
|
||||
})
|
||||
.collect();
|
||||
assert!(stubs.is_empty(), "Reststrich am Rundfenster: {stubs:?}");
|
||||
}
|
||||
|
||||
/// [171] Strich rechts am Rundfenster (Ansicht West): ein Reststück der Lochkante im Band (Einzug der Dämmung)
|
||||
/// ausserhalb des Umrisses entfällt, Kanten der Wand weiter weg bleiben.
|
||||
#[test]
|
||||
fn lochkanten_im_band_der_formoeffnung() {
|
||||
use super::silhouette::EdgeSeg;
|
||||
let e = |a: Pt, b: Pt| EdgeSeg { a, b, hidden: false, owner: 1 };
|
||||
let b = [14.45, 6.75, 15.55, 7.9];
|
||||
let mut edges = vec![
|
||||
e([15.55, 7.7], [15.6, 7.7]), // Strich im Band rechts: weg
|
||||
e([15.6, 6.8], [15.6, 7.8]), // Lochkante im Band: weg
|
||||
e([14.45, 6.75], [15.55, 6.75]), // Seite auf dem Umriss: weg
|
||||
e([15.55, 7.7], [16.5, 7.7]), // Wandkante, reicht weit hinaus: bleibt
|
||||
e([10.0, 7.7], [11.0, 7.7]), // woanders: bleibt
|
||||
e([15.0, 7.0], [15.2, 7.1]), // im Umriss, quer: bleibt (Rahmen/Verdecker entscheiden)
|
||||
];
|
||||
drop_hole_edges(&mut edges, b);
|
||||
let left: Vec<_> = edges.iter().map(|e| (e.a, e.b)).collect();
|
||||
assert_eq!(left, vec![([15.55, 7.7], [16.5, 7.7]), ([10.0, 7.7], [11.0, 7.7]), ([15.0, 7.0], [15.2, 7.1])]);
|
||||
}
|
||||
|
||||
/// [105] Umfassungszarge in der Ansicht: Spiegel über die Rohbaukante hinaus (Rahmen breiter als
|
||||
|
||||
@@ -719,7 +719,7 @@ mod tests {
|
||||
fn schwarze_flaeche_mit_haarstrich() {
|
||||
// [157] Dunkle deckende Fläche ohne Strich: Haarstrich in der Füllfarbe (keine helle Fuge im PDF).
|
||||
let a = poly_node(&[("points", "0,0 1,0 1,1".to_string())], "#0f0f0f", "none", 0.0);
|
||||
assert!(a.contains(&("stroke", "#0f0f0f".to_string())) && a.contains(&("stroke-width", "0.05".to_string())), "{a:?}");
|
||||
assert!(a.contains(&("stroke", "#0f0f0f".to_string())) && a.contains(&("stroke-width", "0.12".to_string())), "{a:?}");
|
||||
let b = poly_node(&[("points", "0,0 1,0 1,1".to_string())], "#ffffff", "none", 0.0);
|
||||
assert!(b.contains(&("stroke", "none".to_string())), "{b:?}");
|
||||
let c = poly_node(&[("points", "0,0 1,0 1,1".to_string())], "#0f0f0f", "#222", 0.35);
|
||||
|
||||
@@ -159,8 +159,10 @@ fn op_json(v: &Value) -> String {
|
||||
op(greyed, v.get("opacity").map(|o| o.as_f64().unwrap_or(f64::NAN)))
|
||||
}
|
||||
|
||||
/// [157] Haarstrich (Papier-mm) gegen die Fuge zwischen aneinanderstossenden dunklen Flächen.
|
||||
pub(crate) const SEAM_MM: f64 = 0.05;
|
||||
/// [157] Haarstrich (Papier-mm) gegen die Fuge zwischen aneinanderstossenden dunklen Flächen. [171] 0.12 statt
|
||||
/// 0.05: ab etwa 12 px/mm (Zoom in Chromium, Vorschau) blieb bei 0.05 mm (0.6 px) eine helle Haarlinie zwischen den
|
||||
/// Schichten der schwarzen Schnittfläche (1:100); 0.12 mm deckt sie, die Fläche wächst nur um 0.06 mm.
|
||||
pub(crate) const SEAM_MM: f64 = 0.12;
|
||||
|
||||
/// [157] Deckend dunkle Füllfarbe (`#rgb`, `#rrggbb`, `#rrggbbff`; jeder Kanal ≤ 0x40), die zwischen zwei
|
||||
/// Flächen eine helle Haarfuge zeigt (Chromium/PDF glätten aneinanderstossende Flächen einzeln): solche
|
||||
@@ -602,8 +604,8 @@ mod tests {
|
||||
let svg = plan_svg(&mut parts, &o).unwrap();
|
||||
let polys: Vec<&str> = svg.lines().filter(|l| l.starts_with("<polygon")).collect();
|
||||
assert_eq!(polys.len(), 4, "{svg}");
|
||||
assert!(polys[0].contains("fill=\"#0f0f0f\" stroke=\"#0f0f0f\" stroke-width=\"0.005\""), "{}", polys[0]);
|
||||
assert!(polys[1].contains("fill=\"#111111\" stroke=\"#111111\" stroke-width=\"0.005\""), "Kantenlauf-Fläche: {}", polys[1]);
|
||||
assert!(polys[0].contains("fill=\"#0f0f0f\" stroke=\"#0f0f0f\" stroke-width=\"0.012\""), "{}", polys[0]);
|
||||
assert!(polys[1].contains("fill=\"#111111\" stroke=\"#111111\" stroke-width=\"0.012\""), "Kantenlauf-Fläche: {}", polys[1]);
|
||||
assert!(polys[2].contains("stroke=\"none\""), "weiss: {}", polys[2]);
|
||||
assert!(polys[3].contains("stroke=\"none\""), "durchscheinend: {}", polys[3]);
|
||||
assert!(seam_fill("#000") && seam_fill("#1a1a1aff") && !seam_fill("#6e6e6e") && !seam_fill("none") && !seam_fill("#00000080"));
|
||||
|
||||
@@ -608,7 +608,7 @@ fn band_curve(poly: &[V2], b: &Band, vc: f64, margin: f64, dx: f64, f: impl Fn(f
|
||||
/// äussere Tangente verbinden. Obere Bögen sitzen bei `k·P`, untere bei `(k+½)·P`, alle im gleichen
|
||||
/// Drehsinn durchlaufen: benachbarte Bögen berühren sich, die Schenkel laufen schräg zurück und kreuzen
|
||||
/// sich kurz über der Unterkante (Spiralfeder von der Seite; Vorlage des Maintainers).
|
||||
/// Teilung `P` = [`INSULATION_PITCH`] · Dicke · scale. Bögen in Schritten ≤ 5° (so auch DXF-Polylinien).
|
||||
/// Teilung `P` = [`INSULATION_PITCH`] · Dicke · scale. Bögen mit Sehnenfehler ≤ [`ARC_SAGITTA_M`] (so auch DXF-Polylinien).
|
||||
fn insulation_runs(poly: &[V2], hatch: &Hatch, scale: f64) -> Vec<Run> {
|
||||
let Some(b) = band_frame(poly, hatch, scale) else { return Vec::new() };
|
||||
let mut runs = Vec::new();
|
||||
@@ -644,8 +644,15 @@ pub fn band_period(pattern: Pattern, t: f64, scale: f64) -> Option<f64> {
|
||||
pub const INSULATION_PITCH: f64 = 0.22;
|
||||
/// Abstand der Bögen von den Schichtkanten, Anteil der Dicke (≈ halbe Musterlinie in 1:50).
|
||||
const INSULATION_INSET: f64 = 0.008;
|
||||
/// Grösster Winkelschritt der Bögen.
|
||||
const ARC_STEP_RAD: f64 = 5.0 * PI / 180.0;
|
||||
/// [171] Grösster Sehnenfehler der Bögen (Modell-m): 0.5 mm ≙ 0.05 mm Papier bei 1:10, bei 1:50 nur 0.01 mm.
|
||||
/// Die kleinen Schlaufen (Radius meist < 3 cm) brauchen so nur 8–12 Punkte je Bogen statt 36 bei festen 5°.
|
||||
const ARC_SAGITTA_M: f64 = 0.0005;
|
||||
|
||||
/// Winkelschritt eines Bogens vom Radius `r` mit Sehnenfehler ≤ [`ARC_SAGITTA_M`] (höchstens 60°).
|
||||
fn arc_step(r: f64) -> f64 {
|
||||
let c = (1.0 - ARC_SAGITTA_M / r).clamp(-1.0, 1.0);
|
||||
(2.0 * c.acos()).clamp(1e-3, PI / 3.0)
|
||||
}
|
||||
|
||||
/// Eine Dämmschlange im Band (Mitte `vc`, halbe Höhe `h`, Teilung `p`), geclippt. Läuft in −u:
|
||||
/// oberer Bogen k im Uhrzeigersinn (links → über die Kante → rechts), Schenkel „/" hinab zum unteren
|
||||
@@ -661,8 +668,9 @@ fn insulation_snake(poly: &[V2], b: &Band, vc: f64, h: f64, p: f64) -> Vec<Run>
|
||||
let g = jsnum::atan2(p / 2.0, vt - vb);
|
||||
let (top_from, top_sweep) = (PI + g, PI + 2.0 * g);
|
||||
let (bot_from, bot_sweep) = (-g, PI - 2.0 * g);
|
||||
let n_top = (top_sweep / ARC_STEP_RAD).ceil().max(1.0) as usize;
|
||||
let n_bot = (bot_sweep / ARC_STEP_RAD).ceil().max(1.0) as usize;
|
||||
let step = arc_step(r);
|
||||
let n_top = (top_sweep / step).ceil().max(1.0) as usize;
|
||||
let n_bot = (bot_sweep / step).ceil().max(1.0) as usize;
|
||||
let k0 = ((b.u0 - b.ua) / p).floor() - 1.0;
|
||||
let mut k = ((b.u1 - b.ua) / p).ceil() + 1.0;
|
||||
let mut pts = Vec::new();
|
||||
@@ -1258,8 +1266,10 @@ mod tests {
|
||||
// Bogen liegt an der Kante (knapp innen).
|
||||
let (lo, hi) = extent(&runs, |q| q.y);
|
||||
assert!(lo > 0.0 && lo < 0.003 && hi < t && hi > t - 0.003, "{lo}..{hi}");
|
||||
// Segmente: Bogenschritte (Sehne ≤ 2r·sin 2.5°) oder lange Schenkel; Schenkel laufen zurück.
|
||||
let chord = 2.0 * r * (2.5f64).to_radians().sin() * 1.001;
|
||||
// Segmente: Bogenschritte (Sehnenfehler ≤ ARC_SAGITTA_M) oder lange Schenkel; Schenkel laufen zurück.
|
||||
let chord = 2.0 * r * (arc_step(r) / 2.0).sin() * 1.001;
|
||||
let per_arc = (PI / arc_step(r)).ceil() as usize;
|
||||
assert!(pts.len() <= (2.0 / p).ceil() as usize * (2 * per_arc + 6), "zu viele Punkte: {}", pts.len());
|
||||
let mut legs: usize = 0;
|
||||
for w in pts.windows(2) {
|
||||
let len = ((w[1].x - w[0].x).powi(2) + (w[1].y - w[0].y).powi(2)).sqrt();
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
<text x="0.98291" y="2.31972" font-family="Inter, sans-serif" text-anchor="start"><tspan font-size="0.3528" fill="#111111">Wohnen</tspan></text>
|
||||
<text x="2.5" y="2.77833" font-family="Inter, sans-serif" text-anchor="middle"><tspan font-size="0.28222" fill="#111111">17.01 m²</tspan></text>
|
||||
<text x="2.5" y="3.23694" font-family="Inter, sans-serif" text-anchor="middle"><tspan font-size="0.28222" fill="#111111">HNF · Hauptnutzfläche</tspan></text>
|
||||
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.7,4.845 3,4.845 3,4.5 1.7,4.5" fill="#0f0f0f" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="4.8275,0.845 4.8275,4.5 4,4.5 4,4.845 5.1725,4.845 5.1725,0.5 4.4,0.5 4.4,0.845" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.1725,0.845 3,0.845 3,0.5 -0.1725,0.5 -0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<line x1="2.475" y1="4.5" x2="2.475" y2="0.845" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<line x1="2.325" y1="0.845" x2="2.325" y2="4.5" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="3.2,4.2725 4.2,4.2725 4.2,1.0725 3.2,1.0725" fill="none" stroke="none" stroke-width="0"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
@@ -2,34 +2,34 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0.1 0 6.8 7.58564" width="68mm" height="75.85641mm">
|
||||
<rect x="0.1" y="0" width="6.8" height="7.58564" fill="#ffffff"/>
|
||||
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
|
||||
<polygon points="5.8275,4.78564 5.8425,4.78564 5.8425,7.08564 5.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.8425,4.78564 5.9925,4.78564 5.9925,7.08564 5.8425,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="6.1525,1.88564 6.1725,1.88564 6.1725,7.08564 6.1525,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="0.8275,1.88564 0.8475,1.88564 0.8475,7.08564 0.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.0075,4.78564 1.1575,4.78564 1.1575,7.08564 1.0075,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.1575,4.78564 1.1725,4.78564 1.1725,7.08564 1.1575,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="3.325,4.78564 3.34,4.78564 3.34,7.08564 3.325,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="3.34,4.78564 3.46,4.78564 3.46,7.08564 3.34,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="3.46,4.78564 3.475,4.78564 3.475,7.08564 3.46,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.1575,4.48564 5.8425,4.48564 5.8425,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1.1575,4.54564 5.8425,4.54564 5.8425,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
|
||||
<polygon points="5.8275,4.78564 5.8425,4.78564 5.8425,7.08564 5.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.8425,4.78564 5.9925,4.78564 5.9925,7.08564 5.8425,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="6.1525,1.88564 6.1725,1.88564 6.1725,7.08564 6.1525,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.8275,1.88564 0.8475,1.88564 0.8475,7.08564 0.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.0075,4.78564 1.1575,4.78564 1.1575,7.08564 1.0075,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.1575,4.78564 1.1725,4.78564 1.1725,7.08564 1.1575,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="3.325,4.78564 3.34,4.78564 3.34,7.08564 3.325,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="3.34,4.78564 3.46,4.78564 3.46,7.08564 3.34,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="3.46,4.78564 3.475,4.78564 3.475,7.08564 3.46,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.1575,4.48564 5.8425,4.48564 5.8425,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1.1575,4.54564 5.8425,4.54564 5.8425,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
|
||||
<polygon points="0.6,0.5 0.6,0.73094 6.4,0.73094 6.4,0.5" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polygon points="0.8275,1.88564 0.8275,7.08564 1.1725,7.08564 1.1725,4.78564 3.325,4.78564 3.325,7.08564 3.475,7.08564 3.475,4.78564 5.8275,4.78564 5.8275,7.08564 6.1725,7.08564 6.1725,1.88564 5.8275,1.88564 5.8275,4.48564 1.1725,4.48564 1.1725,1.88564" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -1,11 +1,12 @@
|
||||
viewBox -4.2 0 37.045 17.378
|
||||
bytes 195265
|
||||
bytes 193961
|
||||
circle 4
|
||||
g 1
|
||||
line 447
|
||||
polygon 1025
|
||||
line 438
|
||||
path 2
|
||||
polygon 1023
|
||||
polyline 154
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash d0400a1b0daa1e56
|
||||
hash b881153aaf3f5078
|
||||
@@ -9,4 +9,4 @@ rect 1
|
||||
svg 1
|
||||
text 34
|
||||
tspan 9
|
||||
hash b98be8a32c279efc
|
||||
hash 487fdee19e8a1bb9
|
||||
@@ -10,4 +10,4 @@ rect 1
|
||||
svg 1
|
||||
text 114
|
||||
tspan 24
|
||||
hash b03f624a6a74041e
|
||||
hash 205916044d15e651
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 47692
|
||||
bytes 47347
|
||||
circle 14
|
||||
g 1
|
||||
line 142
|
||||
path 8
|
||||
path 9
|
||||
polygon 44
|
||||
polyline 106
|
||||
polyline 105
|
||||
rect 1
|
||||
svg 1
|
||||
text 86
|
||||
tspan 19
|
||||
hash 7557aa5041a40ed1
|
||||
hash 56539e8b37286122
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -12.65 0 37.3 33.3
|
||||
bytes 359299
|
||||
bytes 358952
|
||||
circle 14
|
||||
g 1
|
||||
line 3238
|
||||
path 36
|
||||
path 37
|
||||
polygon 144
|
||||
polyline 175
|
||||
polyline 174
|
||||
rect 1
|
||||
svg 1
|
||||
text 89
|
||||
tspan 24
|
||||
hash 101818006ae26a68
|
||||
hash c58c6f21f02cb3a3
|
||||
@@ -10,4 +10,4 @@ rect 1
|
||||
svg 1
|
||||
text 72
|
||||
tspan 18
|
||||
hash 508caf15ae8254f8
|
||||
hash 10120a432e658967
|
||||
@@ -8,4 +8,4 @@ polyline 17
|
||||
rect 1
|
||||
svg 1
|
||||
text 3
|
||||
hash 0ac408ec72d00b90
|
||||
hash c94d4102e772735b
|
||||
@@ -8,4 +8,4 @@ rect 1
|
||||
svg 1
|
||||
text 7
|
||||
tspan 3
|
||||
hash 743dc1fed14a7c7e
|
||||
hash dffe9704c9cbff9f
|
||||
@@ -7,4 +7,4 @@ polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash db4a60e9ca0aace2
|
||||
hash a6fce59be19864a8
|
||||
@@ -6,4 +6,4 @@ polygon 31
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
hash ab081d72649b8b18
|
||||
hash 3ad55e8289524c3b
|
||||
Reference in new issue
Block a user