From 060b24781aa2fa724b70e5bcdfbf176637bb4612 Mon Sep 17 00:00:00 2001 From: Gabor Vasarhelyi Date: Tue, 3 Nov 2026 23:34:10 +0100 Subject: [PATCH] Expose `solve_linear_program` in dodgy_3d with the `debug` feature. This allows callers to combine the planes generated for the neighbours with additional constraints of their own, if needed. --- crates/dodgy_3d/src/lib.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/dodgy_3d/src/lib.rs b/crates/dodgy_3d/src/lib.rs index 1346868..9a96a5c 100644 --- a/crates/dodgy_3d/src/lib.rs +++ b/crates/dodgy_3d/src/lib.rs @@ -24,17 +24,16 @@ mod simulator; use std::borrow::Cow; -use crate::linear_programming::solve_linear_program; - pub use glam::Vec3; pub use simulator::{AgentParameters, Simulator, SimulatorMargin}; -// Re-export Plane so we can use it to provide debug data. +// Re-export Plane so we can use it to provide debug data, and the solver so the +// planes can be combined with additional constraints by the caller. #[cfg(feature = "debug")] -pub use crate::linear_programming::Plane; -// Otherwise, just import it privately. +pub use crate::linear_programming::{solve_linear_program, Plane}; +// Otherwise, just import them privately. #[cfg(not(feature = "debug"))] -use crate::linear_programming::Plane; +use crate::linear_programming::{solve_linear_program, Plane}; /// A single agent in the simulation. #[derive(Clone, PartialEq, Debug)]