mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Refactor to simplify
This commit is contained in:
parent
c30828c7d4
commit
eb32d919b1
@ -19,14 +19,14 @@ impl AllHalfEdgesWithSurface for Face {
|
||||
) {
|
||||
self.region()
|
||||
.all_cycles()
|
||||
.map(|cycle| {
|
||||
.flat_map(|cycle| {
|
||||
cycle
|
||||
.half_edges()
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|half_edge| (half_edge, self.surface().clone()))
|
||||
})
|
||||
.for_each(|iter| result.extend(iter))
|
||||
.for_each(|r| result.push(r))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user