Skip to content

Commit

Permalink
Use Face's own color when sweeping it
Browse files Browse the repository at this point in the history
The face already has a color, so it doesn't make much sense to pass one
into the method.
  • Loading branch information
hannobraun committed Sep 8, 2022
1 parent f95f6ed commit b8975e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/algorithms/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::{Path, Sweep};
impl Sweep for Face {
type Swept = Shell;

fn sweep(self, path: impl Into<Path>, color: Color) -> Self::Swept {
fn sweep(self, path: impl Into<Path>, _: Color) -> Self::Swept {
let path = path.into();

let mut faces = Vec::new();
Expand All @@ -24,7 +24,7 @@ impl Sweep for Face {

for cycle in self.all_cycles() {
for &edge in cycle.edges() {
let face = (edge, color).sweep(path, color);
let face = (edge, self.color()).sweep(path, self.color());
faces.push(face);
}
}
Expand Down

0 comments on commit b8975e8

Please sign in to comment.