From eba15a6e83ed676fa54aa21ed2b2be8fab0399b6 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 12 Jun 2025 10:51:09 -0700 Subject: [PATCH] Tidy up the "Pointed" test assembly Add a debug flag to match the other test assemblies. Remove unnecessary `format!` calls. --- app-proto/src/add_remove.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app-proto/src/add_remove.rs b/app-proto/src/add_remove.rs index f3bbc97..42e0b6a 100644 --- a/app-proto/src/add_remove.rs +++ b/app-proto/src/add_remove.rs @@ -133,19 +133,22 @@ fn load_low_curv_assemb(assembly: &Assembly) { ); } +/* DEBUG */ +// load an example assembly for testing. this code will be removed once we've +// built a more formal test assembly system fn load_pointed_assemb(assembly: &Assembly) { let _ = assembly.try_insert_element( Point::new( - format!("point_front"), - format!("Front point"), + "point_front".to_string(), + "Front point".to_string(), [0.75_f32, 0.75_f32, 0.75_f32], engine::point(0.0, 0.0, FRAC_1_SQRT_2) ) ); let _ = assembly.try_insert_element( Point::new( - format!("point_back"), - format!("Back point"), + "point_back".to_string(), + "Back point".to_string(), [0.75_f32, 0.75_f32, 0.75_f32], engine::point(0.0, 0.0, -FRAC_1_SQRT_2) )