Merge [K3d][K4] Plan-Erzeugung auf dem Rust-Dokument: Override-Regeln und neun Domaenen (Decken, Daecher, Raeume, Waende+Oeffnungen, Treppen, Stuetzen, Koerper, Kontext, Schnittlinien), TS-Fassungen geloescht
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
42 files changed
+1908
-2645
No files matched your search
@@ -1,22 +0,0 @@
|
||||
//! Bindungen der Wand-Verschneidung (`crate::joins`). Kodierung s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Wände flach → `[0, (Cuts je Wand)…]`; `[1, wandIndex]` = Wandtyp/Bauteil unbekannt;
|
||||
/// kaputte Eingabe → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn compute_joins_flat(walls: &[f64]) -> Vec<f64> {
|
||||
crate::joins::compute_joins_flat(walls)
|
||||
}
|
||||
|
||||
/// Verschneidungs-Entscheidung: 0 merge, 1 trim-a, 2 trim-b, 3 coexist.
|
||||
#[wasm_bindgen]
|
||||
pub fn join_priority_resolution(prio_a: f64, prio_b: f64, same_component: bool) -> u8 {
|
||||
use crate::joins::JoinResolution::*;
|
||||
match crate::joins::resolve_join_priority(prio_a, prio_b, same_component) {
|
||||
Merge => 0,
|
||||
TrimA => 1,
|
||||
TrimB => 2,
|
||||
Coexist => 3,
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,6 @@ mod auto_dimensions;
|
||||
mod kennzahlen;
|
||||
mod bulge;
|
||||
mod stair;
|
||||
mod joins;
|
||||
mod room_area;
|
||||
mod room_boundary;
|
||||
mod polygon_holes;
|
||||
@@ -21,8 +20,6 @@ mod wall_mesh_cut;
|
||||
mod plan_buf;
|
||||
mod project_format;
|
||||
mod gpu_compile;
|
||||
mod plan_stairs;
|
||||
mod plan_walls;
|
||||
mod plan_openings;
|
||||
mod delaunay;
|
||||
mod document;
|
||||
|
||||
@@ -1,25 +1,8 @@
|
||||
//! Bindungen kleiner Plan-Bausteine (`crate::plan_misc`). Layouts s. dort.
|
||||
//! Bindung der Linienenden (`crate::plan_misc`, für 2D-Zeichnungen). Kontext-Fussabdruck und
|
||||
//! Schnittführung ruft die Plan-Erzeugung im Kern direkt (`plan/context.rs`).
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Grundriss-Fussabdruck eines Meshes (Sockelkanten); Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn context_footprint_flat(positions: &[f64], indices: &[f64]) -> Vec<f64> {
|
||||
crate::plan_misc::context_footprint(positions, indices)
|
||||
}
|
||||
|
||||
/// `[minX, minY, maxX, maxY]` der x/y-Werte eines [x,y,z…]-Arrays; leer ohne Punkte.
|
||||
#[wasm_bindgen]
|
||||
pub fn context_bbox_flat(positions: &[f64]) -> Vec<f64> {
|
||||
crate::plan_misc::bbox(positions)
|
||||
}
|
||||
|
||||
/// Schnittführungs-Symbol einer Linie; leer bei zu kurzer Linie.
|
||||
#[wasm_bindgen]
|
||||
pub fn section_line_flat(p0x: f64, p0y: f64, p1x: f64, p1y: f64, sign: f64) -> Vec<f64> {
|
||||
crate::plan_misc::section_line(p0x, p0y, p1x, p1y, sign)
|
||||
}
|
||||
|
||||
/// Linienende (Pfeil, Punkt, Schrägstrich, Quadrat); leer ohne Wirkung.
|
||||
#[wasm_bindgen]
|
||||
pub fn end_mark_flat(x: f64, y: f64, dx: f64, dy: f64, art: f64, mm: f64, scale_denominator: f64) -> Vec<f64> {
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
//! Bindungen von Öffnungs-Symbol und Fenster-Symbol (`crate::plan_openings`). Layout s. dort.
|
||||
//! Bindung des Fenster-Symbols (`crate::plan_openings`, für Schnitt/Ansicht). Layout s. dort. Das
|
||||
//! Öffnungs-Symbol im Grundriss ruft die Plan-Erzeugung im Kern direkt (`plan/walls.rs`).
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Tür-/Fenster-Symbol einer Öffnung im Grundriss; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn plan_opening_flat(buf: &[f64]) -> Vec<f64> {
|
||||
crate::plan_openings::plan_opening(buf)
|
||||
}
|
||||
|
||||
/// Fenster-Symbol (Rahmen, Glas, Flügel, Stulp) einer Öffnung; Unsinn/entartet → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn window_symbol_flat(buf: &[f64]) -> Vec<f64> {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
//! Bindung des Treppen-Symbols im Grundriss (`crate::plan_stairs`). Ausgabe-Layout s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Treppen-Parameter (16 Zahlen), Gesamt-Steighöhe, Schnitthöhe über der UK, Strichstärke (mm),
|
||||
/// gefüllter Pfeil (0/1) → Primitivliste; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn plan_stair_flat(params: &[f64], total_rise: f64, cut_rise: f64, lw_mm: f64, filled_arrow: f64) -> Vec<f64> {
|
||||
crate::plan_stairs::plan_stair(params, total_rise, cut_rise, lw_mm, filled_arrow != 0.0)
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
//! Bindungen von Wand-Poché und Decken-Umriss im Grundriss (`crate::plan_walls`). Layout s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Wand-Poché-Geometrie einer Wand; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn plan_wall_poche_flat(buf: &[f64]) -> Vec<f64> {
|
||||
crate::plan_walls::wall_poche(buf)
|
||||
}
|
||||
|
||||
/// Freie Teilstücke eines Decken-Umrisses gegen Wand-Footprints; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn plan_ceiling_outline_flat(buf: &[f64]) -> Vec<f64> {
|
||||
crate::plan_walls::ceiling_outline(buf)
|
||||
}
|
||||
Reference in new issue
Block a user