Tidy up the "Pointed" test assembly

Add a debug flag to match the other test assemblies. Remove unnecessary
`format!` calls.
This commit is contained in:
Aaron Fenyes 2025-06-12 10:51:09 -07:00
parent e447e7ea96
commit eba15a6e83

View file

@ -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) { fn load_pointed_assemb(assembly: &Assembly) {
let _ = assembly.try_insert_element( let _ = assembly.try_insert_element(
Point::new( Point::new(
format!("point_front"), "point_front".to_string(),
format!("Front point"), "Front point".to_string(),
[0.75_f32, 0.75_f32, 0.75_f32], [0.75_f32, 0.75_f32, 0.75_f32],
engine::point(0.0, 0.0, FRAC_1_SQRT_2) engine::point(0.0, 0.0, FRAC_1_SQRT_2)
) )
); );
let _ = assembly.try_insert_element( let _ = assembly.try_insert_element(
Point::new( Point::new(
format!("point_back"), "point_back".to_string(),
format!("Back point"), "Back point".to_string(),
[0.75_f32, 0.75_f32, 0.75_f32], [0.75_f32, 0.75_f32, 0.75_f32],
engine::point(0.0, 0.0, -FRAC_1_SQRT_2) engine::point(0.0, 0.0, -FRAC_1_SQRT_2)
) )