[K3c] Abzugskoerper-Geometrie (Schluesselloch, Subtraktion, Strecke, Schnitt-Rechtecke) in Rust (voids.rs); mehrere getrennte Aussparungen wirken jetzt alle
This commit is contained in:
1 parent
96205efd86
commit
72ef7b770e
7 files changed
+462
-163
No files matched your search
@@ -33,6 +33,7 @@ mod mesh_section;
|
||||
mod plan_elevation;
|
||||
mod plan_misc;
|
||||
mod plan_section;
|
||||
mod voids;
|
||||
mod curves;
|
||||
mod hatch;
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
//! Bindungen der Abzugskörper-Geometrie (`crate::voids`). Layouts s. dort.
|
||||
|
||||
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> {
|
||||
crate::voids::subtract_rings_flat(pts, cutters, no_stroke)
|
||||
}
|
||||
|
||||
/// Teile einer Strecke ausserhalb aller Ringe; Unsinn → leer.
|
||||
#[wasm_bindgen]
|
||||
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