Skip to content

Commit

Permalink
Relax requirements of HalfEdge's Sweep impl
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 13, 2023
1 parent e5d747a commit 4cd2107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{

use super::{Sweep, SweepCache};

impl Sweep for (Handle<HalfEdge>, &Handle<Vertex>, &Surface, Color) {
impl Sweep for (&HalfEdge, &Handle<Vertex>, &Surface, Color) {
type Swept = (Handle<Face>, Handle<HalfEdge>);

fn sweep_with_cache(
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Sweep for Handle<Face> {
cycle.half_edges().cloned().circular_tuple_windows()
{
let (face, top_edge) = (
half_edge.clone(),
half_edge.deref(),
next.start_vertex(),
self.surface().deref(),
self.color(),
Expand Down

0 comments on commit 4cd2107

Please sign in to comment.