[K1] Delaunay-Triangulierung in Rust (delaunay.rs, Port von delaunator mit exaktem orient2d); Gelaende und Kontext nutzen den Kern; Abhaengigkeit delaunator entfernt

This commit is contained in:
karim committed 2026-10-28 01:29:44 +01:00
1 parent 89b8f7b1c3
commit 96205efd86
9 files changed
+558 -36

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
//! Bindung der Delaunay-Triangulierung (`crate::delaunay`).
use wasm_bindgen::prelude::wasm_bindgen;
/// Delaunay-Dreiecke zu `[x0, y0, x1, y1 …]`; Indizes je drei; leer bei < 3 oder kollinearen Punkten.
#[wasm_bindgen]
pub fn delaunay_flat(coords: &[f64]) -> Vec<f64> {
crate::delaunay::triangulate(coords).into_iter().map(f64::from).collect()
}
+1
View File
@@ -28,6 +28,7 @@ mod gpu_compile;
mod plan_stairs;
mod plan_walls;
mod plan_openings;
mod delaunay;
mod mesh_section;
mod plan_elevation;
mod plan_misc;