Skip to content

Commit

Permalink
Inline function
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 8, 2022
1 parent 4151e23 commit 8521b76
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions crates/fj-kernel/src/algorithms/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ impl TransformObject for Face {
let surface = self.surface().transform(transform);

let exterior = self.exterior().clone().transform(transform);
let interiors = transform_cycles(self.interiors(), transform);
let interiors = self
.interiors()
.map(|cycle| cycle.clone().transform(transform));

let color = self.color();

Expand Down Expand Up @@ -157,12 +159,3 @@ impl TransformObject for Vertex {
)
}
}

fn transform_cycles<'a>(
cycles: impl IntoIterator<Item = &'a Cycle> + 'a,
transform: &'a Transform,
) -> impl Iterator<Item = Cycle> + 'a {
cycles
.into_iter()
.map(|cycle| cycle.clone().transform(transform))
}

0 comments on commit 8521b76

Please sign in to comment.