Merge branch 'worktree-agent-abca8f1c9f80d8eb4' into claude/practical-noether-1hb2s1

# Conflicts:
#	TODO.md
#	src-tauri/core/src/web/mod.rs
This commit is contained in:
Claude committed 2026-11-14 11:39:42 +00:00
commit 9fec52035b
15 files changed
+1207 -91

No files matched your search

+12 -2
View File
@@ -198,10 +198,11 @@ pub fn grip_coincident(corners: &[f64], groups: &[f64]) -> Vec<f64> {
if !(n >= 0.0 && n.fract() == 0.0) {
return vec![];
}
let end = i + 1 + 2 * n as usize;
if end > groups.len() {
// Als f64 prüfen: `n as usize` sättigt bei 1e300, `1 + 2 * n` liefe über ([258]).
if n > ((groups.len() - i - 1) / 2) as f64 {
return vec![];
}
let end = i + 1 + 2 * n as usize;
gs.push(pts(&groups[i + 1..end]));
i = end;
}
@@ -212,6 +213,15 @@ pub fn grip_coincident(corners: &[f64], groups: &[f64]) -> Vec<f64> {
mod tests {
use super::*;
/// [258] Gruppengrösse 1e300 / 1e19: leer statt Slice-Panic durch usize-Überlauf.
#[test]
fn regression_coincident_riesige_gruppe() {
for n in [1e300, 1e19, 9.3e18, 4e18, f64::INFINITY] {
assert!(grip_coincident(&[0.0, 0.0], &[n, 0.0, 0.0]).is_empty());
assert!(grip_coincident(&[0.0, 0.0], &[1.0, 0.0, 0.0, n, 0.0, 0.0]).is_empty());
}
}
#[test]
fn kaputte_puffer_leer() {
assert!(grip_coincident(&[0.0, 0.0], &[3.0, 1.0]).is_empty());
+48 -48
View File
@@ -3,54 +3,54 @@
//! Kaputte Eingaben ergeben ein leeres Ergebnis statt eines Panics (ein Panic legt das ganze
//! WASM-Modul lahm, [14]).
mod kernel2d;
mod polygon;
mod roof;
mod sun;
mod site_rules;
mod kennzahlen;
mod bulge;
mod stair;
mod room_area;
mod room_boundary;
mod polygon_holes;
mod plan_buf;
mod project_format;
mod gpu_compile;
mod delaunay;
mod document;
mod ops;
mod voids;
mod curves;
mod hatch;
mod skeleton;
mod plan_scene;
mod plan_pick;
mod snap;
mod plan_svg;
mod plan_dxf;
mod plan_print_svg;
mod layers;
mod pens;
mod layout_model;
mod clash_broad;
mod parametric_walls;
mod reorder;
mod text_layout;
mod grips;
mod grip_drag;
mod competition;
mod project_refs;
mod commands;
mod import;
mod cmd_create;
mod area_report;
mod rich_text;
mod geo_mesh;
mod opening_presets;
mod furniture_lib;
mod solid_bool;
mod line_pattern;
pub mod kernel2d;
pub mod polygon;
pub mod roof;
pub mod sun;
pub mod site_rules;
pub mod kennzahlen;
pub mod bulge;
pub mod stair;
pub mod room_area;
pub mod room_boundary;
pub mod polygon_holes;
pub mod plan_buf;
pub mod project_format;
pub mod gpu_compile;
pub mod delaunay;
pub mod document;
pub mod ops;
pub mod voids;
pub mod curves;
pub mod hatch;
pub mod skeleton;
pub mod plan_scene;
pub mod plan_pick;
pub mod snap;
pub mod plan_svg;
pub mod plan_dxf;
pub mod plan_print_svg;
pub mod layers;
pub mod pens;
pub mod layout_model;
pub mod clash_broad;
pub mod parametric_walls;
pub mod reorder;
pub mod text_layout;
pub mod grips;
pub mod grip_drag;
pub mod competition;
pub mod project_refs;
pub mod commands;
pub mod import;
pub mod cmd_create;
pub mod area_report;
pub mod rich_text;
pub mod geo_mesh;
pub mod opening_presets;
pub mod furniture_lib;
pub mod solid_bool;
pub mod line_pattern;
use wasm_bindgen::prelude::wasm_bindgen;