brep_blend/blending/blend/mod.rs
1//! General rolling-ball blends (Golovanov §4.9 + §6.9 surgery).
2//!
3//! The blend surface is the rational surface (4.9.1) built from three
4//! curves: the two support curves cr(t) ⊂ F1 and cs(t) ⊂ F2 where a
5//! sphere of radius ρ touches both faces, and the middle curve at the
6//! intersection of the two tangent planes, weighted w(t) = cos(α/2)
7//! (4.9.3). The tangency system (4.9.2) + the section-plane constraint
8//! (4.9.5) — the sphere center pinned to the normal plane of the edge —
9//! is solved per station by Newton with a finite-difference Jacobian.
10//!
11//! Topology is rebuilt the §6.9 way, with NO tool solid and NO boolean:
12//! each mating face's loop swaps the blended edge's coedge for a coedge
13//! on its support curve (trimming the adjacent seam edge when the face
14//! is a closed carrier with seam-in-one-loop topology), and the blend
15//! face is inserted with its own seam. Open edges take the same route
16//! (`edge/open.rs`), and a whole SELECTION goes through `network.rs`, which
17//! marches every stripe against the original solid and solves each shared
18//! corner from its ball before anything is cut.
19
20pub mod carve;
21pub mod chain;
22pub mod collapse;
23pub mod convex_parallel;
24pub mod corner;
25pub mod creased_rim;
26pub mod edge;
27pub mod fold;
28pub mod miter;
29pub mod network;
30pub use network::STRIPE_PINCH_TAPER_WHAT;
31pub mod planar_chart;
32mod restrict;
33pub mod rollover;
34pub mod rollover_surgery;
35pub mod setback;
36pub mod runout;
37pub mod split_rim;
38pub mod turned_rim;
39pub mod sheet_ends;
40pub mod stations;
41pub mod rows;
42pub mod track_fit;
43
44/// A transverse end with parallel normals needs a tapered runout, not cutter
45/// composition. The network tries that runout before propagating this refusal.
46pub const TANGENTIAL_TRANSVERSE_END: &str = "tangential_transverse_end";
47
48pub fn is_tangential_transverse_end(refusal: &crate::KernelRefusal) -> bool {
49 matches!(&refusal.class, crate::RefusalClass::UnsupportedGeometry { what }
50 if what == TANGENTIAL_TRANSVERSE_END)
51}
52
53/// Whether the open march's local station refinement runs. Escape hatch
54/// `BREP_BLEND_REFINE=0` restores the uniform ladder exactly; a test turns it
55/// off for its own thread with `set_refinement_off_for_test`.
56pub fn station_refinement_on() -> bool {
57 switch!(live "BREP_BLEND_REFINE", true)
58}
59
60thread_local! {
61 static BLEND_NOTES: std::cell::RefCell<Vec<String>> = const { std::cell::RefCell::new(Vec::new()) };
62}
63
64thread_local! {
65 /// Set only while the open-pad composition (`fillet/edges.rs`, the
66 /// 2026-10-17 face-ring report) builds its two stages on this thread.
67 static OPEN_PAD_NETWORK: std::cell::Cell<bool> = const { std::cell::Cell::new(false) };
68}
69
70/// Runs `build` as the open-pad composition's network: the open march takes
71/// a station where a contact crosses its carrier's domain boundary and the
72/// row fit breaks there (`march_open_stations_core`), and the march extends
73/// past a section end that lies outside the overshoot
74/// (`open_station_parameters`). Both are what the composition's walls need
75/// (the F6 blend rail of the reported ring stood 7.1e-5 off its carrier at
76/// the boundary; the pads' stripes start before their trims) and both move
77/// a body the plain network already built (2026-10-18: the reported model's
78/// F6 moved by a refinement rung and a broken row), so outside the
79/// composition every network is built exactly as before. Restores the flag
80/// after.
81pub fn with_open_pad_network<T>(build: impl FnOnce() -> T) -> T {
82 /// Restores the previous flag on every exit path, an unwinding panic
83 /// included, so a later network on this thread never inherits it.
84 struct Reset(bool);
85 impl Drop for Reset {
86 fn drop(&mut self) {
87 OPEN_PAD_NETWORK.with(|flag| flag.set(self.0));
88 }
89 }
90 let _reset = Reset(OPEN_PAD_NETWORK.with(|flag| flag.replace(true)));
91 build()
92}
93
94/// Whether the march runs as the open-pad composition's network (see
95/// [`with_open_pad_network`]).
96pub(in crate::blend) fn open_pad_network_on() -> bool {
97 OPEN_PAD_NETWORK.with(|flag| flag.get())
98}
99
100/// An equal-radius convex star on four planar faces with no common ball closes
101/// as the rolling ball does: a ridge cylinder between two sphere triangles.
102/// `BREP_BLEND_RIDGE_STAR=0` restores the ribbon fill.
103const RIDGE_STAR_DEFAULT: bool = true;
104
105pub fn ridge_star_on() -> bool {
106 switch!(live "BREP_BLEND_RIDGE_STAR", RIDGE_STAR_DEFAULT)
107}
108
109/// The STOPPED-END rollover of an open stripe (user bug F10, 2026-11-02):
110/// a track that leaves its mate across a tangent edge before the stripe's
111/// own vertex and never comes back — the F10 fillet's rails run 1.1e-2 past
112/// faces 13/23's boundaries onto the F8 blend faces 19/26 — has its tail
113/// re-marched on the neighbour from the crossing station and the cap's
114/// legs drawn on the neighbours. Default OFF: `BREP_BLEND_STOPPED_END_ROLLOVER=1`
115/// turns it on. Promotion owes the blend/fillet filters and both censuses
116/// with the switch on.
117const STOPPED_END_ROLLOVER_DEFAULT: bool = false;
118
119pub fn stopped_end_rollover_on() -> bool {
120 switch!(live "BREP_BLEND_STOPPED_END_ROLLOVER", STOPPED_END_ROLLOVER_DEFAULT)
121}
122
123/// Equal-length chains are unchanged either way; unequal ones move their
124/// stations, so it lands behind this switch until its census:
125/// `BREP_BLEND_CHAIN_ARC_STATIONS=1` turns it on, `=0` off;
126/// `set_chain_arc_stations_for_test` forces it on a test's own thread.
127const CHAIN_ARC_STATIONS_DEFAULT: bool = false;
128
129pub fn chain_arc_stations_on() -> bool {
130 switch!(live "BREP_BLEND_CHAIN_ARC_STATIONS", CHAIN_ARC_STATIONS_DEFAULT)
131}
132
133#[derive(Clone, Debug, PartialEq)]
134pub enum StripeRadius {
135 Constant(f64),
136 /// `(edge fraction, radius)` stops sorted by fraction, interpolated
137 /// linearly between and held flat past the ends: `blend_edge_variable`'s
138 /// convention, which the law entries sample into.
139 Stops(Vec<(f64, f64)>),
140}
141
142impl StripeRadius {
143 /// From a stop list: one constant when every stop carries the same
144 /// radius (to 1e-12 relative, the single-edge lane's own test).
145 pub fn from_stops(stops: &[(f64, f64)]) -> Self {
146 let mut sorted = stops.to_vec();
147 sorted.sort_by(|a, b| a.0.total_cmp(&b.0));
148 match sorted.first() {
149 Some(&(_, first)) if sorted.iter().all(|(_, r)| (r - first).abs() <= 1e-12 * (1.0 + first.abs())) => {
150 StripeRadius::Constant(first)
151 }
152 _ => StripeRadius::Stops(sorted),
153 }
154 }
155
156 /// The radius at an edge fraction in `[0, 1]` (clamped).
157 pub fn at_fraction(&self, fraction: f64) -> f64 {
158 match self {
159 StripeRadius::Constant(radius) => *radius,
160 StripeRadius::Stops(stops) => {
161 let fraction = fraction.clamp(0.0, 1.0);
162 if fraction <= stops[0].0 {
163 return stops[0].1;
164 }
165 for pair in stops.windows(2) {
166 if fraction <= pair[1].0 {
167 let width = (pair[1].0 - pair[0].0).max(1e-12);
168 return pair[0].1 + (pair[1].1 - pair[0].1) * (fraction - pair[0].0) / width;
169 }
170 }
171 stops[stops.len() - 1].1
172 }
173 }
174 }
175
176 /// The constant, for a constant law.
177 pub fn constant(&self) -> Option<f64> {
178 match self {
179 StripeRadius::Constant(radius) => Some(*radius),
180 StripeRadius::Stops(_) => None,
181 }
182 }
183
184 /// The largest radius the law takes.
185 pub fn largest(&self) -> f64 {
186 match self {
187 StripeRadius::Constant(radius) => *radius,
188 StripeRadius::Stops(stops) => stops.iter().map(|(_, r)| *r).fold(0.0, f64::max),
189 }
190 }
191
192 /// The law's END value at the edge's start (`at_start`) or finish: what
193 /// the user asked for at that vertex, and the constant every corner solve
194 /// there uses (C2).
195 pub fn end(&self, at_start: bool) -> f64 {
196 self.at_fraction(if at_start { 0.0 } else { 1.0 })
197 }
198
199 /// Whether every radius is positive and finite.
200 pub fn is_positive(&self) -> bool {
201 match self {
202 StripeRadius::Constant(radius) => radius.is_finite() && *radius > 0.0,
203 StripeRadius::Stops(stops) => !stops.is_empty() && stops.iter().all(|(_, r)| r.is_finite() && *r > 0.0),
204 }
205 }
206}
207
208
209/// Record what a blend that SHIPS needs its feature to say about it — today,
210/// a march whose rails still stand off their carriers after its station
211/// ladder and local refinement ran out. Drained per feature by the history
212/// loop ([`take_blend_notes`]), beside the soundness acceptance's repairs.
213pub fn record_blend_note(note: String) {
214 BLEND_NOTES.with(|notes| notes.borrow_mut().push(note));
215}
216
217/// Take every blend note recorded on this thread since the last call.
218/// Blending runs on the feature's own thread (no parallel march), so the
219/// history loop's drain sees every note its feature recorded.
220pub fn take_blend_notes() -> Vec<String> {
221 BLEND_NOTES.with(|notes| std::mem::take(&mut *notes.borrow_mut()))
222}
223
224/// The ledger's length, and a way back to it: a lane that refuses takes back
225/// the notes it recorded, so a note never describes a wall that did not ship.
226pub fn blend_notes_mark() -> usize {
227 BLEND_NOTES.with(|notes| notes.borrow().len())
228}
229
230pub fn blend_notes_truncate(mark: usize) {
231 BLEND_NOTES.with(|notes| notes.borrow_mut().truncate(mark));
232}
233
234/// A fillet chain wall that SHIPPED short of the construction request its
235/// accepted rung made (`KernelTolerances::model` on the wall between its
236/// rails): which wall — the blend face's name and its exact surface — what
237/// was asked, what the wall reads, and the typed budget that ran out.
238#[derive(Clone, Debug)]
239pub struct WallModelReport {
240 pub name: Option<String>,
241 pub surface: crate::NurbsSurface,
242 pub request: f64,
243 pub residual: f64,
244 /// What else the lane measured that the message must say (an unaccepted
245 /// rung's deficit, a ladder rung's local refinement), verbatim.
246 pub detail: Option<String>,
247 pub budget: crate::ApproximationBudget,
248}
249
250thread_local! {
251 static BLEND_APPROXIMATIONS: std::cell::RefCell<Vec<WallModelReport>> = const { std::cell::RefCell::new(Vec::new()) };
252}
253
254thread_local! {
255 static BLEND_OPERATION_DEPTH: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };
256}
257
258/// One blend OPERATION's scope on this thread: every public blend entry point
259/// (and the history loop, around each feature) holds one. The OUTERMOST
260/// entry drops whatever an earlier operation recorded and nobody consumed —
261/// a direct API caller consumes ([`take_blend_approximations`]) after the
262/// operation whose reports it wants, before starting the next — while a
263/// nested entry (a fillet's per-edge chain blend) clears nothing, so every
264/// report of the operation in flight is kept, however many there are.
265pub struct BlendOperation;
266
267impl BlendOperation {
268 pub fn enter() -> BlendOperation {
269 BLEND_OPERATION_DEPTH.with(|depth| {
270 if depth.get() == 0 {
271 BLEND_APPROXIMATIONS.with(|reports| reports.borrow_mut().clear());
272 timing::begin_operation();
273 }
274 depth.set(depth.get() + 1);
275 });
276 BlendOperation
277 }
278}
279
280/// Whether the innermost open blend operation is the outermost one (no
281/// nested operation inside another).
282pub fn blend_operation_outermost() -> bool {
283 BLEND_OPERATION_DEPTH.with(|depth| depth.get() <= 1)
284}
285
286impl Drop for BlendOperation {
287 fn drop(&mut self) {
288 BLEND_OPERATION_DEPTH.with(|depth| {
289 depth.set(depth.get().saturating_sub(1));
290 if depth.get() == 0 {
291 timing::end_operation();
292 }
293 });
294 }
295}
296pub use crate::blend_timing as timing;
297pub use timing::{blend_timing_capture, take_blend_timings, BlendTiming};
298pub use timing::{record_count, BlendTimer};
299
300/// Record a wall that ships with its request unmet. Written by the rung that
301/// keeps its body; whether the body reaches a caller is decided at
302/// consumption ([`take_blend_approximations`]), not here. Every report of
303/// the operation in flight is kept (see [`BlendOperation`]).
304pub fn record_wall_model_report(report: WallModelReport) {
305 BLEND_APPROXIMATIONS.with(|reports| reports.borrow_mut().push(report));
306}
307
308
309/// Whether any wall-model report is waiting (the history loop reads the
310/// returned bodies only then).
311pub fn blend_approximations_pending() -> bool {
312 BLEND_APPROXIMATIONS.with(|reports| !reports.borrow().is_empty())
313}
314
315/// Bit-identical surfaces: the same degrees, knots and homogeneous control
316/// points, compared by their bits.
317pub fn same_surface(a: &crate::NurbsSurface, b: &crate::NurbsSurface) -> bool {
318 let bits = |values: &[f64]| values.iter().map(|value| value.to_bits()).collect::<Vec<_>>();
319 a.degree_u == b.degree_u
320 && a.degree_v == b.degree_v
321 && bits(&a.knots_u) == bits(&b.knots_u)
322 && bits(&a.knots_v) == bits(&b.knots_v)
323 && a.control_points.len() == b.control_points.len()
324 && a.control_points.iter().zip(&b.control_points).all(|(row_a, row_b)| {
325 row_a.len() == row_b.len()
326 && row_a.iter().zip(row_b).all(|(p, q)| {
327 [p.x, p.y, p.z, p.w].map(f64::to_bits) == [q.x, q.y, q.z, q.w].map(f64::to_bits)
328 })
329 })
330}
331
332/// Whether `face_name` names the report's wall: its exact name, or that
333/// name with the `[k]` (decimal) suffix `ensure_unique_face_names` gives a
334/// colliding name at registration. Nothing else: no prefix, no other suffix.
335fn names_the_wall(face_name: &Option<String>, report_name: &Option<String>) -> bool {
336 match (face_name, report_name) {
337 (Some(face), Some(report)) => {
338 face == report
339 || face.strip_prefix(report.as_str()).and_then(|rest| rest.strip_prefix('[')).and_then(|rest| rest.strip_suffix(']')).is_some_and(
340 |index| !index.is_empty() && index.bytes().all(|byte| byte.is_ascii_digit()),
341 )
342 }
343 (None, None) => true,
344 _ => false,
345 }
346}
347
348/// Consume EVERY wall-model report recorded on this thread since the last
349/// call, in ONE snapshot, against ALL the bodies a call returned
350/// (`(body name, solid)`): a report becomes a typed `blend.wall_model`
351/// [`crate::Approximation`] on each body carrying its wall — a face with a
352/// bit-identical surface AND the report's name, exactly or as registration
353/// renamed it (`NAME[k]`) — and is dropped when no returned body carries it
354/// (a lane that refused, a body a later step discarded). A wall carried by
355/// two returned bodies (one surface, bit for bit, in both) is reported on
356/// both: the reading is a property of that surface. Reports for one wall
357/// collapse to the last. Never a match by name alone.
358/// `take_blend_approximations(&[])` discards everything recorded (the
359/// history loop's stale drain before a feature runs).
360pub fn take_blend_approximations(bodies: &[(&str, &crate::BrepSolid)]) -> Vec<crate::Approximation> {
361 let snapshot = BLEND_APPROXIMATIONS.with(|reports| std::mem::take(&mut *reports.borrow_mut()));
362 let mut unique: Vec<WallModelReport> = Vec::new();
363 for report in snapshot {
364 unique.retain(|kept| !(kept.name == report.name && same_surface(&kept.surface, &report.surface)));
365 unique.push(report);
366 }
367 let mut approximations = Vec::new();
368 for (body, solid) in bodies {
369 for report in &unique {
370 let carried = solid.shells.iter().flat_map(|shell| &shell.faces).any(|face| {
371 names_the_wall(&face.name, &report.name) && same_surface(&face.surface, &report.surface)
372 });
373 if carried {
374 let wall = report.name.as_deref().unwrap_or("(unnamed)");
375 let unaccepted = matches!(report.budget.reason, crate::BudgetReason::Unaccepted | crate::BudgetReason::Unread);
376 let budget = match report.budget.mechanism {
377 crate::BudgetMechanism::LocalRounds => format!(
378 "local refinement stopped: {:?} after {} of {} rounds, {} of {} stations per segment",
379 report.budget.reason, report.budget.rounds_used, report.budget.rounds_limit,
380 report.budget.stations, report.budget.station_limit,
381 ),
382 crate::BudgetMechanism::StationRungs => format!(
383 "the open march's station ladder stopped: {:?} after {} of {} global station rungs, {} of {} stations",
384 report.budget.reason, report.budget.rounds_used, report.budget.rounds_limit,
385 report.budget.stations, report.budget.station_limit,
386 ),
387 };
388 let unknown = report.budget.unread > 0;
389 let rails = report.budget.measured_component == crate::MeasuredComponent::Rails;
390 let mut message = if !unaccepted && (rails || unknown) {
391 // A request that covers the rails and the wall says WHICH
392 // it measured, and never offers a partial reading as the
393 // worst: with unread intervals the worst is unknown.
394 let what = if rails {
395 format!("the fillet wall {wall}'s support rails stand")
396 } else {
397 format!("the fillet wall {wall} stands")
398 };
399 let against = if rails {
400 "off their exact construction (their carriers / the exact ball contacts)"
401 } else {
402 "from the rolling ball between its rails"
403 };
404 let reading = if unknown {
405 format!(
406 "an UNKNOWN distance {against}: {} interval(s) could not be read (the largest READABLE reading is {:.3e} mm, not the worst)",
407 report.budget.unread, report.residual
408 )
409 } else {
410 format!("{:.3e} mm {against}", report.residual)
411 };
412 format!(
413 "{what} {reading}, against a construction request of {:.3e} mm (accepted at the intersection-fit bar); {budget}",
414 report.request,
415 )
416 } else if unaccepted {
417 format!(
418 "the blend wall {wall} ships from a rung that never met acceptance: its worst reading \
419 {:.3e} mm against its acceptance bar {:.3e} mm; {budget}",
420 report.residual, report.request,
421 )
422 } else {
423 format!(
424 "the fillet wall {wall} stands {:.3e} mm from the rolling ball between its rails, against a \
425 construction request of {:.3e} mm (accepted at the intersection-fit bar); {budget}",
426 report.residual, report.request,
427 )
428 };
429 if let Some(detail) = &report.detail {
430 message = format!("{message} ({detail})");
431 }
432 approximations.push(crate::Approximation {
433 code: if unaccepted { "blend.wall_acceptance" } else { "blend.wall_model" }.to_string(),
434 body: body.to_string(),
435 measured: report.residual,
436 bar: report.request,
437 volume_bound: None,
438 edges: Vec::new(),
439 budget: Some(report.budget.clone()),
440 message,
441 });
442 }
443 }
444 }
445 approximations
446}
447
448
449pub use chain::{blend_smooth_chain, blend_smooth_chain_if_closed};
450pub use chain::smooth_chain_members;
451pub use corner::round_concave_chain_corner;
452pub use corner::round_convex_corner;
453pub use edge::{blend_closed_edge, blend_closed_edge_knot_aware, blend_edge_variable, blend_open_edge, is_pcurve_floor_refusal, with_pcurve_knot_retry};
454pub use collapse::is_full_width_collapse;
455pub use planar_chart::{
456 fit_planar_charts_to_trims, is_planar_chart_refusal, planar_chart_overrun,
457};
458pub use track_fit::PCURVE_OFF_FLOOR;
459pub use edge::{consumed_band, is_consumed_snap, is_rail_collapse};
460pub use network::{
461 blend_star_network, blend_star_network_laws, blend_star_network_with_corner_policy, degenerate_corner_setbacks, mixed_convexity_corner, mixed_convexity_corners, selection_convexity, MixedCorner,
462};
463pub use miter::{is_marched_fit_off_carriers, is_miter_support_overrun};
464/// The two faces each selected edge lies on, in the network's mate order
465/// (the open-pad composition reads which is planar and which is the boss).
466pub fn selection_mates<'a>(
467 solid: &'a crate::topology::BrepSolid,
468 edge_ids: &[u64],
469 radius: f64,
470) -> Result<Vec<(&'a crate::topology::EdgeRecord, [&'a crate::topology::FaceRecord; 2])>, crate::KernelRefusal> {
471 Ok(network::stripe_mates(solid, edge_ids, radius)?
472 .into_iter()
473 .map(|(edge, first, second)| (edge, [first.face, second.face]))
474 .collect())
475}
476
477pub use runout::{build_runout_walls, plan_runout, RunoutPlan};
478pub use fold::{is_rail_fold, is_wall_fold, wall_loop_refusal, WALL_FOLDS};
479pub use stations::is_ball_off_carrier;
480pub use network::is_ball_does_not_fit;
481pub use network::{body_carries_wrapped_corner, reject_wrapped_network, with_wrap_sharp_corners, wrap_sharp_corners_on, WrapOutcome};
482
483/// Off the switch every closed rim's two support pcurves are refitted to their
484/// rail's projected track (`edge/closed.rs::refit_closed_support_pcurve`, the
485/// closed chain's support-piece fitter: a dense track of analytic feet, a
486/// verified fit ladder and the shipped read), 96 of the half torus's 98 ms of
487/// rows. On the switch each trim is first READ as shipped at the same floor
488/// (`track_fit::read_shipped_pcurve`, `PCURVE_REFINEMENT_TOLERANCE`): a plane
489/// mate's trim is the rail's own control points through the plane's affine
490/// chart (exact by construction, the exact revolution lane's rule); any other
491/// mate's trim, or an image that misses, takes the refit as before (the
492/// march's own interpolated pcurve was measured as a candidate and dropped:
493/// 8.5e-5 off on the half torus's torus mate). The shipped contract is
494/// unchanged (every trim read within the floor); the bytes are not, so it
495/// landed OFF and was promoted by its census (the kernel battery, the case
496/// manifest and hlr_tests with the switch on). ON by default;
497/// `BREP_BLEND_CLOSED_TRIM_READ_FIRST=0` is the escape hatch back to the refit
498/// road, `=1` forces it on; `set_closed_trim_read_first_for_test` forces
499/// either way on a test's thread.
500const CLOSED_TRIM_READ_FIRST_DEFAULT: bool = true;
501
502pub fn closed_trim_read_first_on() -> bool {
503 switch!(live "BREP_BLEND_CLOSED_TRIM_READ_FIRST", CLOSED_TRIM_READ_FIRST_DEFAULT)
504}
505
506
507/// The check solves 31 centres per interval by continuation from the
508/// neighbour, each a full station Newton with a finite-difference Jacobian
509/// rebuilt at every iteration (eleven evaluations of the tangency system a
510/// centre, 89 of the half torus's 169 ms of march). On the switch each centre
511/// is seeded by a quadratic extrapolation through the last three and solved
512/// by the chord method with the Jacobian carried from centre to centre
513/// (`stations::solve_station_state_chord`), to the plain solver's own stop;
514/// the plain solver from the neighbour is the fall-back for anything the
515/// chord cannot finish. The centres are the same roots to the same tolerance,
516/// not the same bits: the declared wall reading moves in its last digits, its
517/// verdict and the body do not, which is why it landed OFF and was promoted
518/// by its census. ON by default; `BREP_BLEND_CLOSED_WALL_PREDICT=0` is the
519/// escape hatch back to the plain continuation solves, `=1` forces it on;
520/// `set_closed_wall_predict_for_test` forces either way on a test's thread.
521const CLOSED_WALL_PREDICT_DEFAULT: bool = true;
522
523pub fn closed_wall_predict_on() -> bool {
524 switch!(live "BREP_BLEND_CLOSED_WALL_PREDICT", CLOSED_WALL_PREDICT_DEFAULT)
525}
526
527
528// BREP lane L: begin keyway_floor_open_mixed_corner_20261014
529pub use corner::round_mixed_concave_open_corner;
530// BREP lane L: end keyway_floor_open_mixed_corner_20261014
531
532
533// Lane R7 (2026-10-19): the tapered cusp runout; `BREP_BLEND_TAPER_RUNOUT`.
534pub mod taper_runout;
535
536// 2026-10-21: the local radius relief of a folding constant fillet;
537// `BREP_BLEND_RADIUS_RELIEF`.
538pub mod relief;