[140] Strichstärken: grösste Standard-Stärke 0.25 bei 1:100 (Wände/Stützen/Träger, Schnitt-Umriss, Terrain, Schnittlinie), Decken/Dächer/Silhouette 0.18, Details 0.13
This commit is contained in:
8 files changed
+28
-21
No files matched your search
@@ -27,7 +27,7 @@ struct Def {
|
||||
/// „05 Kontext" — Elternkategorie der Kontext-Kategorien.
|
||||
const CONTEXT_PARENT: Def = Def { code: "05", name: "Kontext", color: "#707078", lw: 0.13 };
|
||||
/// „31 Dächer" bleibt oberste Ebene.
|
||||
const IMPORTED_ROOF: Def = Def { code: "31", name: "Dächer", color: "#7a4a3a", lw: 0.35 };
|
||||
const IMPORTED_ROOF: Def = Def { code: "31", name: "Dächer", color: "#7a4a3a", lw: 0.18 };
|
||||
/// Kinder von „05 Kontext", in dieser Reihenfolge (`NESTED_CONTEXT_CATEGORIES`).
|
||||
const NESTED: [Def; 10] = [
|
||||
Def { code: "02", name: "Gelände", color: "#8a9478", lw: 0.13 },
|
||||
|
||||
@@ -15,7 +15,7 @@ const CONTEXT_LINE_MM: f64 = 0.1;
|
||||
const SECTION_LINE_CATEGORY: &str = "90";
|
||||
const SECTION_LINE_INK: &str = "#1f242c";
|
||||
const SECTION_LINE_MM: f64 = 0.18;
|
||||
const SECTION_LINE_MARK_MM: f64 = 0.5;
|
||||
const SECTION_LINE_MARK_MM: f64 = 0.25;
|
||||
const SECTION_LINE_DASH: [f64; 4] = [6.0, 1.5, 0.4, 1.5];
|
||||
const SECTION_LABEL_H: f64 = 0.5;
|
||||
|
||||
|
||||
@@ -15,17 +15,18 @@ use std::collections::HashMap;
|
||||
|
||||
const EDGE_INK: &str = "#2b3039";
|
||||
const EDGE_MM: f64 = 0.13;
|
||||
/// [140] Silhouette (Umriss aller Bauteile zusammen) mittelstark: hebt den Baukörper von Details ab.
|
||||
const SILHOUETTE_MM: f64 = 0.35;
|
||||
/// [140] Silhouette (Umriss aller Bauteile zusammen) mittelstark: hebt den Baukörper von Details (0.13) ab;
|
||||
/// Terrainlinie 0.25 (grösste Standard-Stärke bei 1:100).
|
||||
const SILHOUETTE_MM: f64 = 0.18;
|
||||
/// [140] Abstand (m), bis zu dem eine Kante als Teil der Silhouette gilt.
|
||||
const SILHOUETTE_TOL: f64 = 2e-3;
|
||||
const FRAME_MM: f64 = 0.18;
|
||||
const FRAME_MM: f64 = 0.13;
|
||||
const GLASS_FILL_MONO: &str = "#c4c8cd";
|
||||
const GLASS_FILL_COLOR: &str = "#9fc2d9";
|
||||
const SHADOW_FILL: &str = "#8f959e";
|
||||
const OPENING_SHADOW_FILL: &str = "#a7adb5";
|
||||
const GROUND_INK: &str = "#1f242c";
|
||||
const GROUND_MM: f64 = 0.5;
|
||||
const GROUND_MM: f64 = 0.25;
|
||||
const FRAME_FILL_COLOR: &str = "#d9d9d4";
|
||||
const SILL_FILL_COLOR: &str = "#cccccb";
|
||||
const DOOR_LEAF_FILL_COLOR: &str = "#ede6d9";
|
||||
|
||||
@@ -711,6 +711,9 @@ mod tests {
|
||||
assert!((at(0.5, 50.0) - 0.67).abs() < 0.01);
|
||||
assert!((at(0.5, 200.0) - 0.38).abs() < 0.01);
|
||||
assert_eq!(at(0.5, 100.0), 0.5);
|
||||
// [140] Grösste Standard-Stärke 0.25 bei 1:100 (Wand-Schnittkante): 1:50 kräftiger, 1:200 feiner.
|
||||
assert_eq!(at(0.25, 100.0), 0.25);
|
||||
assert!(at(0.25, 50.0) > 0.3 && at(0.25, 200.0) < 0.21 && at(0.25, 200.0) > at(0.13, 200.0));
|
||||
assert!((at(0.13, 50.0) - 0.13).abs() < 0.02 && (at(0.13, 200.0) - 0.13).abs() < 0.02);
|
||||
for s in [20.0, 50.0, 100.0, 200.0, 500.0, 1000.0] {
|
||||
let class = [0.7, 0.5, 0.35, 0.25, 0.18, 0.13, 0.1].map(|w| at(w, s));
|
||||
|
||||
@@ -20,12 +20,13 @@ use std::collections::{HashMap, HashSet};
|
||||
const SECTION_INK: &str = "#1f242c";
|
||||
const SECTION_VISIBLE_INK: &str = "#2b3039";
|
||||
const SECTION_HIDDEN_INK: &str = "#8a929c";
|
||||
/// [140] Umriss der geschnittenen Masse (Vereinigung aller Schnittflächen): schwer wie die Wand im Grundriss.
|
||||
const SECTION_CUT_OUTLINE_MM: f64 = 0.5;
|
||||
/// [140] Umriss der geschnittenen Masse (Vereinigung aller Schnittflächen): schwer wie die Wand im Grundriss
|
||||
/// (grösste Standard-Stärke 0.25 bei 1:100, Entscheid Maintainer).
|
||||
const SECTION_CUT_OUTLINE_MM: f64 = 0.25;
|
||||
/// [140] Fugen zwischen Schichten/Bauteilen innerhalb der geschnittenen Masse: fein.
|
||||
const SECTION_JOINT_MM: f64 = 0.13;
|
||||
const SECTION_VISIBLE_MM: f64 = 0.18;
|
||||
const SECTION_GROUND_MM: f64 = 0.5;
|
||||
const SECTION_GROUND_MM: f64 = 0.25;
|
||||
const SECTION_HIDDEN_MM: f64 = 0.13;
|
||||
const SECTION_HIDDEN_DASH: [f64; 2] = [0.12, 0.08];
|
||||
/// [T6] gewachsenes Terrain im Schnitt: gestrichelt, dünner als das gestaltete.
|
||||
|
||||
@@ -32,7 +32,7 @@ const END_MM: f64 = 0.08;
|
||||
/// Ab diesem Knick (Grad) beginnt am Umriss ein neuer Strich (mit Überzug an der Ecke).
|
||||
const CORNER_DEG: f64 = 28.0;
|
||||
/// Zweiter Zug: ab dieser Strichstärke (Papier-mm) und Länge, mit diesem Stärke-Anteil.
|
||||
pub const DOUBLE_MIN_WEIGHT_MM: f64 = 0.35;
|
||||
pub const DOUBLE_MIN_WEIGHT_MM: f64 = 0.25;
|
||||
const DOUBLE_MIN_MM: f64 = 5.0;
|
||||
pub const DOUBLE_WEIGHT: f64 = 0.55;
|
||||
|
||||
@@ -385,7 +385,8 @@ mod tests {
|
||||
#[test]
|
||||
fn writer_linie_verkettet_mit_ueberzug() {
|
||||
use crate::plan::buf::{LineRef, Writer};
|
||||
let l = LineRef { a: v(0.0, 0.0), b: v(4.0, 0.0), cls: "x", weight_mm: 0.25, dash: None, zigzag: None, motif: None, color: None, drawing_id: None, opening_id: None, stair_id: None, greyed: None, opacity: None };
|
||||
// Unter `DOUBLE_MIN_WEIGHT_MM` (ein Zug).
|
||||
let l = LineRef { a: v(0.0, 0.0), b: v(4.0, 0.0), cls: "x", weight_mm: 0.18, dash: None, zigzag: None, motif: None, color: None, drawing_id: None, opening_id: None, stair_id: None, greyed: None, opacity: None };
|
||||
let mut plain = Writer::new(false);
|
||||
plain.line_ref(&l, 0);
|
||||
let mut w = Writer::new(false);
|
||||
|
||||
@@ -85,7 +85,7 @@ export const IMPORTED_ROOF_CATEGORY: ContextCategoryDef = {
|
||||
code: "31",
|
||||
name: "Dächer",
|
||||
color: "#7a4a3a",
|
||||
lw: 0.35,
|
||||
lw: 0.18,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -380,7 +380,7 @@ export const sampleProject: Project = {
|
||||
children: [
|
||||
{ code: "10", name: "Situation", color: "#909090", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "11", name: "Strasse", color: "#a89070", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "12", name: "Gebäude", color: "#888888", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "12", name: "Gebäude", color: "#888888", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "13", name: "Bäume", color: "#50a050", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "14", name: "Höhenlinien", color: "#909050", lw: 0.18, visible: true, locked: false },
|
||||
],
|
||||
@@ -389,20 +389,21 @@ export const sampleProject: Project = {
|
||||
code: "20",
|
||||
name: "Wände",
|
||||
color: "#0a0a0a",
|
||||
// [140] Schnittkante 0.5 bei 1:100 (mit `scaleLineWeights` ≈ 0.7 bei 1:50, ≈ 0.35 bei 1:200).
|
||||
lw: 0.5,
|
||||
// [140] Schnittkante 0.25 bei 1:100 = grösste Standard-Stärke (Entscheid Maintainer; mit
|
||||
// `scaleLineWeights` ≈ 0.32 bei 1:50, ≈ 0.2 bei 1:200).
|
||||
lw: 0.25,
|
||||
visible: true,
|
||||
locked: false,
|
||||
children: [
|
||||
{ code: "21", name: "Türen/Fenster", color: "#5080c8", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "21", name: "Türen/Fenster", color: "#5080c8", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "22", name: "Möbel", color: "#909090", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "25", name: "Stützen", color: "#c87050", lw: 0.5, visible: true, locked: false },
|
||||
{ code: "25", name: "Stützen", color: "#c87050", lw: 0.25, visible: true, locked: false },
|
||||
],
|
||||
},
|
||||
{ code: "30", name: "Decken", color: "#605850", lw: 0.35, visible: true, locked: false },
|
||||
{ code: "31", name: "Dächer", color: "#7a4a3a", lw: 0.35, visible: true, locked: false },
|
||||
{ code: "40", name: "Treppen", color: "#4a6a58", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "35", name: "Träger", color: "#a87858", lw: 0.5, visible: true, locked: false },
|
||||
{ code: "30", name: "Decken", color: "#605850", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "31", name: "Dächer", color: "#7a4a3a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "40", name: "Treppen", color: "#4a6a58", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "35", name: "Träger", color: "#a87858", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "50", name: "Text", color: "#d0d0d0", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "60", name: "Räume", color: "#5a7a9a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "90", name: "Referenzen", color: "#585860", lw: 0.13, visible: true, locked: false },
|
||||
|
||||
Reference in new issue
Block a user