[K3c] TS-Fassung von Schnitt/Ansicht gelöscht: Fassaden toSection/toElevation, Tests auf den Kern umgestellt, Gleichheitstest entfernt
This commit is contained in:
41 files changed
+320
-5070
No files matched your search
@@ -1,15 +0,0 @@
|
||||
//! Bindungen des Netz-Ebenenschnitts (`crate::mesh_section`). Layouts s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Schnitt eines Dreiecksnetzes mit einer Ebene; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn mesh_section_cut_flat(positions: &[f64], indices: &[f64], plane: &[f64]) -> Vec<f64> {
|
||||
crate::mesh_section::cut(positions, indices, plane)
|
||||
}
|
||||
|
||||
/// Ringe → Flächen mit Löchern; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn mesh_section_polygons_flat(input: &[f64]) -> Vec<f64> {
|
||||
crate::mesh_section::rings_to_polygons(input)
|
||||
}
|
||||
@@ -20,14 +20,10 @@ mod wall_mesh_cut;
|
||||
mod plan_buf;
|
||||
mod project_format;
|
||||
mod gpu_compile;
|
||||
mod plan_openings;
|
||||
mod delaunay;
|
||||
mod document;
|
||||
mod ops;
|
||||
mod mesh_section;
|
||||
mod plan_elevation;
|
||||
mod plan_misc;
|
||||
mod plan_section;
|
||||
mod voids;
|
||||
mod curves;
|
||||
mod hatch;
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
//! Bindungen der Ansichts-Geometrie (`crate::plan_elevation`). Layouts s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Sichtbare Teilstücke von Segmenten gegen nähere Verdecker; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_clip_segments_flat(occ: &[f64], segs: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::clip_segments(occ, segs)
|
||||
}
|
||||
|
||||
/// Ob Punkte hinter einem näheren Verdecker liegen; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_occluded_points_flat(occ: &[f64], pts: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::occluded_points(occ, pts)
|
||||
}
|
||||
|
||||
/// Schlagschatten auskragender Flächen auf Fassaden; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_shadows_flat(walls: &[f64], slabs: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::shadows(walls, slabs)
|
||||
}
|
||||
|
||||
/// XOR-Umrisskanten frontaler Rechteckgruppen; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_xor_outline_flat(polys: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::xor_outline(polys)
|
||||
}
|
||||
|
||||
/// Sichtbare Wand-, Decken- und Dachflächen in Ansichts-Koordinaten; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_faces_flat(frame: &[f64], walls: &[f64], slabs: &[f64], roofs: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::faces(frame, walls, slabs, roofs)
|
||||
}
|
||||
|
||||
/// Eck-Verlängerung der Wandenden für die Ansicht; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_wall_extensions_flat(input: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::wall_extensions(input)
|
||||
}
|
||||
|
||||
/// Projektion und Aufteilung (Glas, Flügel, Sprossen, Bank, Symbol) der Öffnungen; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn elevation_openings_flat(frame: &[f64], input: &[f64]) -> Vec<f64> {
|
||||
crate::plan_elevation::openings(frame, input)
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
//! 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;
|
||||
|
||||
/// Fenster-Symbol (Rahmen, Glas, Flügel, Stulp) einer Öffnung; Unsinn/entartet → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn window_symbol_flat(buf: &[f64]) -> Vec<f64> {
|
||||
crate::plan_openings::window_symbol_flat(buf)
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
//! Bindungen der Schnitt-Bänder (`crate::plan_section`). Layouts s. dort.
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Dominanz-Subtraktion und Verschmelzung der Schnitt-Rechtecke; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn section_dominant_bands_flat(input: &[f64]) -> Vec<f64> {
|
||||
crate::plan_section::dominant_bands(input)
|
||||
}
|
||||
|
||||
/// Aussenringe der Vereinigung achsparalleler Rechtecke; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn section_union_outlines_flat(input: &[f64]) -> Vec<f64> {
|
||||
crate::plan_section::union_outlines(input)
|
||||
}
|
||||
|
||||
/// Spur der senkrechten Schnittebene auf den Dachflächen eines Dachs; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn section_roof_segments_flat(base_x: f64, base_y: f64, u_x: f64, u_y: f64, planes: &[f64]) -> Vec<f64> {
|
||||
crate::plan_section::roof_segments(base_x, base_y, u_x, u_y, planes)
|
||||
}
|
||||
@@ -2,12 +2,6 @@
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
/// Löcher als Schlüsselloch-Stege in den Aussenring; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn voids_keyhole_flat(rings: &[f64]) -> Vec<f64> {
|
||||
crate::voids::keyhole_flat(rings)
|
||||
}
|
||||
|
||||
/// Polygon minus Schneider (mit nicht gestrichenen Kanten); `[-1]` = keine Überschneidung.
|
||||
#[wasm_bindgen]
|
||||
pub fn voids_subtract_rings_flat(pts: &[f64], cutters: &[f64], no_stroke: &[f64]) -> Vec<f64> {
|
||||
@@ -19,9 +13,3 @@ pub fn voids_subtract_rings_flat(pts: &[f64], cutters: &[f64], no_stroke: &[f64]
|
||||
pub fn voids_segment_outside_flat(seg: &[f64], cutters: &[f64]) -> Vec<f64> {
|
||||
crate::voids::segment_outside_flat(seg, cutters)
|
||||
}
|
||||
|
||||
/// Schnitt-Intervalle eines Prismas mit einer senkrechten Ebene; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
pub fn voids_section_rects_flat(pts: &[f64], base_u: &[f64]) -> Vec<f64> {
|
||||
crate::voids::section_rects_flat(pts, base_u)
|
||||
}
|
||||
Reference in new issue
Block a user