Iterator over all edge information stored in this struct
(&self)
| 676 | impl 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 { |
no outgoing calls