Migrate code to operations API

This commit is contained in:
Hanno Braun 2023-05-04 10:11:31 +02:00
parent 203808d0de
commit e79a256c5d
1 changed files with 4 additions and 5 deletions

View File

@ -5,10 +5,9 @@ use itertools::Itertools;
use crate::{ use crate::{
algorithms::{reverse::Reverse, transform::TransformObject}, algorithms::{reverse::Reverse, transform::TransformObject},
builder::CycleBuilder,
geometry::curve::GlobalPath, geometry::curve::GlobalPath,
objects::{Face, Shell}, objects::{Cycle, Face, Shell},
operations::Insert, operations::{BuildCycle, Insert, JoinCycle},
services::Services, services::Services,
storage::Handle, storage::Handle,
}; };
@ -82,8 +81,8 @@ impl Sweep for Handle<Face> {
)); ));
} }
let top_cycle = CycleBuilder::connect_to_edges(top_edges, services) let top_cycle = Cycle::empty()
.build(services) .add_joined_edges(top_edges, services)
.insert(services); .insert(services);
if i == 0 { if i == 0 {