(triangles: &[[u32; 3]])
| 670 | .entry(key) |
| 671 | .and_modify(|edge: &mut EdgeInfo| edge.count = edge.count.saturating_add(1)) |
| 672 | .or_insert(EdgeInfo { count: 1 }); |
| 673 | } |
| 674 | for idx in *tri { |
| 675 | if let Some(items) = scratch.adjacency.get_mut(idx as usize) { |
| 676 | items.push(tri_index); |
| 677 | } |
| 678 | } |
| 679 | scratch.tri_normals.push(tri_normal(vertices, *tri)); |
| 680 | } |
| 681 | scratch |