From e79a256c5dc1e3a1c5c66db2dddb7ff0221e17c5 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 4 May 2023 10:11:31 +0200 Subject: [PATCH] Migrate code to operations API --- crates/fj-kernel/src/algorithms/sweep/face.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/sweep/face.rs b/crates/fj-kernel/src/algorithms/sweep/face.rs index 743661428..5b59cc6d5 100644 --- a/crates/fj-kernel/src/algorithms/sweep/face.rs +++ b/crates/fj-kernel/src/algorithms/sweep/face.rs @@ -5,10 +5,9 @@ use itertools::Itertools; use crate::{ algorithms::{reverse::Reverse, transform::TransformObject}, - builder::CycleBuilder, geometry::curve::GlobalPath, - objects::{Face, Shell}, - operations::Insert, + objects::{Cycle, Face, Shell}, + operations::{BuildCycle, Insert, JoinCycle}, services::Services, storage::Handle, }; @@ -82,8 +81,8 @@ impl Sweep for Handle { )); } - let top_cycle = CycleBuilder::connect_to_edges(top_edges, services) - .build(services) + let top_cycle = Cycle::empty() + .add_joined_edges(top_edges, services) .insert(services); if i == 0 {