Highlight selected points

In the process, make points round, since the highlighting works better
visually that way.
This commit is contained in:
Aaron Fenyes 2025-04-27 22:23:41 -07:00
parent 0fbb071506
commit bbd4ee08b6
5 changed files with 45 additions and 10 deletions

View file

@ -138,7 +138,7 @@ fn load_pointed_assemb(assembly: &Assembly) {
Point::new(
format!("point_front"),
format!("Front point"),
[0.875_f32, 0.875_f32, 0.875_f32],
[0.75_f32, 0.75_f32, 0.75_f32],
engine::point(0.0, 0.0, FRAC_1_SQRT_2)
)
);
@ -146,7 +146,7 @@ fn load_pointed_assemb(assembly: &Assembly) {
Point::new(
format!("point_back"),
format!("Back point"),
[0.875_f32, 0.875_f32, 0.875_f32],
[0.75_f32, 0.75_f32, 0.75_f32],
engine::point(0.0, 0.0, -FRAC_1_SQRT_2)
)
);
@ -168,7 +168,7 @@ fn load_pointed_assemb(assembly: &Assembly) {
Point::new(
format!("point{index_x}{index_y}"),
format!("Point {index_x}{index_y}"),
[0.4*(2.0 + x) as f32, 0.4*(2.0 + y) as f32, 0.4*(2.0 - x*y) as f32],
[0.5*(1.0 + x) as f32, 0.5*(1.0 + y) as f32, 0.5*(1.0 - x*y) as f32],
engine::point(x, y, 0.0)
)
);