Skip to main content

take_blend_approximations

Function take_blend_approximations 

Source
pub fn take_blend_approximations(
    bodies: &[(&str, &BrepSolid)],
) -> Vec<Approximation>
Expand description

Consume EVERY wall-model report recorded on this thread since the last call, in ONE snapshot, against ALL the bodies a call returned ((body name, solid)): a report becomes a typed blend.wall_model crate::Approximation on each body carrying its wall — a face with a bit-identical surface AND the report’s name, exactly or as registration renamed it (NAME[k]) — and is dropped when no returned body carries it (a lane that refused, a body a later step discarded). A wall carried by two returned bodies (one surface, bit for bit, in both) is reported on both: the reading is a property of that surface. Reports for one wall collapse to the last. Never a match by name alone. take_blend_approximations(&[]) discards everything recorded (the history loop’s stale drain before a feature runs).