MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / iter

Method iter

splashsurf_lib/src/mesh.rs:678–689  ·  view source on GitHub ↗

Iterator over all edge information stored in this struct

(&self)

Source from the content-addressed store, hash-verified

676impl MeshEdgeInformation {
677 /// Iterator over all edge information stored in this struct
678 pub fn iter(&self) -> impl Iterator<Item = EdgeInformation> + '_ {
679 self.edge_counts.iter().map(|(e, (edge_idx, count))| {
680 let info = &self.edge_info[*edge_idx];
681 EdgeInformation {
682 edge: info.0,
683 edge_sorted: *e,
684 incident_faces: *count,
685 face: info.1,
686 local_edge_index: info.2,
687 }
688 })
689 }
690
691 /// Returns the number of boundary edges (i.e. edges with 1 incident face)
692 pub fn count_boundary_edges(&self) -> usize {

Callers 15

grid_loop_no_simdFunction · 0.45
grid_loop_neonFunction · 0.45
grid_loop_avx2Function · 0.45
grid_canyonFunction · 0.45
mesh_vertex_normalsFunction · 0.45
aabb_from_pointsFunction · 0.45
aabb_from_points_parFunction · 0.45

Calls

no outgoing calls