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::{
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue