mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
c949ff7252
commit
c30828c7d4
@ -17,15 +17,16 @@ impl AllHalfEdgesWithSurface for Face {
|
||||
&self,
|
||||
result: &mut Vec<(Handle<HalfEdge>, Handle<Surface>)>,
|
||||
) {
|
||||
for cycle in self.region().all_cycles() {
|
||||
result.extend(
|
||||
self.region()
|
||||
.all_cycles()
|
||||
.map(|cycle| {
|
||||
cycle
|
||||
.half_edges()
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|half_edge| (half_edge, self.surface().clone())),
|
||||
);
|
||||
}
|
||||
.map(|half_edge| (half_edge, self.surface().clone()))
|
||||
})
|
||||
.for_each(|iter| result.extend(iter))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user