You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/lookup.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ fn main() {
8
8
let indices = icosphere.get_all_indices();
9
9
let vertices = icosphere.raw_points();
10
10
11
-
println!("Indices: {:?}", indices);
11
+
println!("Indices: {indices:?}");
12
12
13
13
println!("\nVertices:");
14
14
for(i, vertex)in vertices.iter().enumerate(){
@@ -33,7 +33,7 @@ fn main() {
33
33
letmut ab = AdjacencyBuilder::new(vertices.len());
34
34
ab.add_indices(&indices);
35
35
let adjency = ab.finish();
36
-
println!("\nVertex neighborlist:\n(The result preserves winding: the resulting array is wound around the center vertex in the same way that the source triangles were wound.):\n {:?}", adjency);
36
+
println!("\nVertex neighborlist:\n(The result preserves winding: the resulting array is wound around the center vertex in the same way that the source triangles were wound.):\n {adjency:?}");
37
37
38
38
let face_area = |a:usize,b:usize,c:usize| {
39
39
let a = vertices[a];
@@ -68,5 +68,5 @@ fn main() {
68
68
writeln!(weight_file,"{weight}").expect("Failed to write to file");
0 commit comments