Skip to content

Commit

Permalink
Make Sweep::sweep easier to call
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 24, 2022
1 parent 0e6a9a6 commit 5a0b6c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion crates/fj-kernel/src/algorithms/sweep/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ impl Sweep for Edge {
fn sweep(
self,
path: impl Into<Path>,
tolerance: Tolerance,
tolerance: impl Into<Tolerance>,
color: Color,
) -> Self::Swept {
let path = path.into();
let tolerance = tolerance.into();

if let Some(vertices) = self.vertices().get() {
let face = create_non_continuous_side_face(
Expand Down
3 changes: 2 additions & 1 deletion crates/fj-kernel/src/algorithms/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ impl Sweep for Face {
fn sweep(
self,
path: impl Into<Path>,
tolerance: Tolerance,
tolerance: impl Into<Tolerance>,
color: Color,
) -> Self::Swept {
let path = path.into();
let tolerance = tolerance.into();

let mut faces = Vec::new();

Expand Down
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub trait Sweep {
fn sweep(
self,
path: impl Into<Path>,
tolerance: Tolerance,
tolerance: impl Into<Tolerance>,
color: Color,
) -> Self::Swept;
}
Expand Down
3 changes: 2 additions & 1 deletion crates/fj-kernel/src/algorithms/sweep/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ impl Sweep for Sketch {
fn sweep(
self,
path: impl Into<Path>,
tolerance: Tolerance,
tolerance: impl Into<Tolerance>,
color: Color,
) -> Self::Swept {
let path = path.into();
let tolerance = tolerance.into();

let mut shells = Vec::new();
for face in self.into_faces() {
Expand Down

0 comments on commit 5a0b6c0

Please sign in to comment.