From 8ede469d00eafd8e22e872d7ebd2d9ab7326a8a3 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 8 Nov 2022 13:28:02 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/partial/objects/cycle.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/cycle.rs b/crates/fj-kernel/src/partial/objects/cycle.rs index 461c48fdb..366520966 100644 --- a/crates/fj-kernel/src/partial/objects/cycle.rs +++ b/crates/fj-kernel/src/partial/objects/cycle.rs @@ -97,14 +97,11 @@ impl PartialCycle { half_edge.front().surface_form().into_full(objects)?; *half_edge = half_edge.clone().merge_with( - PartialHalfEdge::default() - .with_back_vertex( - PartialVertex::default().with_surface_form(back_vertex), - ) - .with_front_vertex( - PartialVertex::default() - .with_surface_form(front_vertex.clone()), - ), + PartialHalfEdge::default().with_vertices([ + PartialVertex::default().with_surface_form(back_vertex), + PartialVertex::default() + .with_surface_form(front_vertex.clone()), + ]), ); previous_vertex = Some(MaybePartial::from(front_vertex));