mirror of https://github.com/hannobraun/Fornjot
Migrate code to operations API
This commit is contained in:
parent
203808d0de
commit
e79a256c5d
|
@ -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<Face> {
|
|||
));
|
||||
}
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue