MCPcopy Create free account
hub / github.com/PerroEngine/Perro / flatten_tris

Function flatten_tris

perro_source/render_stack/perro_meshlets/src/lib.rs:672–678  ·  view source on GitHub ↗
(triangles: &[[u32; 3]])

Source from the content-addressed store, hash-verified

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

Callers 1

simplify_surfaceFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected