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) {
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)
)